Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
belajarJavaServlet_Fabian
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Fabian Dewantara Santonie
belajarJavaServlet_Fabian
Commits
24f268ce
Commit
24f268ce
authored
Mar 24, 2022
by
Fabian Dewantara Santonie
🕊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Perbaikan Typo
parent
d3c7eddf
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
2 deletions
+22
-2
edit.java
src/main/java/org/testing/bank/edit.java
+1
-1
edit.jsp
src/main/webapp/edit.jsp
+21
-1
No files found.
src/main/java/org/testing/bank/edit.java
View file @
24f268ce
...
...
@@ -61,7 +61,7 @@ public class edit extends HttpServlet {
st
.
executeUpdate
();
st
.
close
();
con
.
close
();
response
.
sendRedirect
(
request
.
getContextPath
()+
"/
editData
"
);
response
.
sendRedirect
(
request
.
getContextPath
()+
"/
DatabaseConnect
"
);
}
catch
(
ClassNotFoundException
|
SQLException
e
)
{
e
.
printStackTrace
();
}
...
...
src/main/webapp/edit.jsp
View file @
24f268ce
...
...
@@ -2,6 +2,7 @@
pageEncoding=
"ISO-8859-1"
%>
<!DOCTYPE html>
<html>
<link
href=
"https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css"
rel=
"stylesheet"
integrity=
"sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC"
crossorigin=
"anonymous"
>
<head>
<meta
charset=
"ISO-8859-1"
>
<title>
Insert title here
</title>
...
...
@@ -20,7 +21,26 @@
<th>
${kode}
</th>
<th>
${nama}
</th>
</tr>
</table>
<h1>
Edit Data
</h1>
<h6>
ID Bank tidak dapat diubah
</h6>
<form
name=
"loginForm"
method=
"post"
action=
"editData"
>
<table
class=
"table-sm"
style=
"with: 80%"
>
<tr>
<td>
ID Bank
</td>
<td><input
type=
"text"
name=
"id"
value =
${id}
readonly
></td>
</tr>
<tr>
<td>
Kode Bank
</td>
<td><input
type=
"text"
name=
"kode"
value=
${kode}
></td>
</tr>
<tr>
<td>
Nama Bank
</td>
<td><input
type=
"text"
name=
"nama"
value=
${nama}
></td>
</tr>
</table>
<input
type=
"submit"
name=
"submit"
>
</form>
</div>
</form>
</body>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment