Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
tugasAkhir_FabianDewantara
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
tugasAkhir_FabianDewantara
Commits
23173433
Commit
23173433
authored
Mar 25, 2022
by
Fabian Dewantara Santonie
🕊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Memperbaiki input hobi pada inputData
parent
173c53a8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
36 deletions
+29
-36
inputData.class
build/classes/org/tugasAkhir/servlet/inputData.class
+0
-0
inputData.java
src/main/java/org/tugasAkhir/servlet/inputData.java
+11
-32
view.jsp
src/main/webapp/view.jsp
+18
-4
No files found.
build/classes/org/tugasAkhir/servlet/inputData.class
View file @
23173433
No preview for this file type
src/main/java/org/tugasAkhir/servlet/inputData.java
View file @
23173433
...
...
@@ -47,41 +47,20 @@ public class inputData extends HttpServlet {
String
hobiBuku
=
request
.
getParameter
(
"hobiBuku"
);
String
hobiBadminton
=
request
.
getParameter
(
"hobiBadminton"
);
String
hobiLainnya
=
request
.
getParameter
(
"hobiLainnya"
);
String
hobi
=
""
;
try
{
if
(
hobiBerenang
.
equals
(
"Berenang"
))
{
hobi
=
hobi
+
hobiBerenang
+
" "
;
}
if
(
hobiBerenang
==
null
)
{
hobiBerenang
=
""
;
}
catch
(
Exception
e
)
{
if
(
hobiFutsal
==
null
)
{
hobiFutsal
=
""
;
}
try
{
if
(
hobiBuku
.
equals
(
"Membaca_Buku"
))
{
hobi
=
hobi
+
hobiBuku
+
" "
;
}
if
(
hobiBuku
==
null
)
{
hobiBuku
=
""
;
}
catch
(
Exception
e
)
{
if
(
hobiBadminton
==
null
)
{
hobiBadminton
=
""
;
}
try
{
if
(
hobiFutsal
.
equals
(
"Futsal"
))
{
hobi
=
hobi
+
hobiFutsal
+
" "
;
}
}
catch
(
Exception
e
)
{
}
try
{
if
(
hobiBadminton
.
equals
(
"Badminton"
))
{
hobi
=
hobi
+
hobiBadminton
+
" "
;
}
}
catch
(
Exception
e
)
{
}
try
{
if
(
hobiLainnya
.
equals
(
"Lainnya"
))
{
hobi
=
hobi
+
hobiLainnya
+
" "
;
}
}
catch
(
Exception
e
)
{
if
(
hobiLainnya
==
null
)
{
hobiLainnya
=
""
;
}
st
.
setString
(
1
,
request
.
getParameter
(
"id"
));
st
.
setString
(
2
,
request
.
getParameter
(
"nama"
));
...
...
@@ -89,7 +68,7 @@ public class inputData extends HttpServlet {
st
.
setString
(
4
,
request
.
getParameter
(
"tempat_lahir"
));
st
.
setString
(
5
,
request
.
getParameter
(
"tanggal_lahir"
));
st
.
setString
(
6
,
request
.
getParameter
(
"jenis_kelamin"
));
st
.
setString
(
7
,
request
.
getParameter
(
"hobi"
)
);
st
.
setString
(
7
,
hobiBerenang
+
" "
+
hobiFutsal
+
" "
+
hobiBuku
+
" "
+
hobiBadminton
+
" "
+
hobiLainnya
);
st
.
setString
(
8
,
request
.
getParameter
(
"email"
));
st
.
setString
(
9
,
request
.
getParameter
(
"anak_ke"
));
st
.
setString
(
10
,
request
.
getParameter
(
"pendidikan_terakhir"
));
...
...
src/main/webapp/view.jsp
View file @
23173433
...
...
@@ -11,9 +11,24 @@
<title>
Insert title here
</title>
</head>
<body>
<div
align=
"right"
>
<a
href=
"Login.jsp"
><button
class=
"btn btn-primary"
>
Logout
</button></a>
</div>
<nav
class=
"navbar navbar-expand-lg navbar-light bg-light"
>
<div
class=
"container-fluid"
>
<a
class=
"navbar-brand"
>
Selamat Datang ${nama}
</a>
<button
class=
"navbar-toggler"
type=
"button"
data-bs-toggle=
"collapse"
data-bs-target=
"#navbarSupportedContent"
aria-controls=
"navbarSupportedContent"
aria-expanded=
"false"
aria-label=
"Toggle navigation"
>
<span
class=
"navbar-toggler-icon"
></span>
</button>
<div
class=
"collapse navbar-collapse"
id=
"navbarSupportedContent"
>
<ul
class=
"navbar-nav me-auto mb-2 mb-lg-0"
>
<li
class=
"nav-item"
>
<a
class=
"nav-link"
href=
"mahasiswaBaru.jsp"
>
Tambah Data
</a>
</li>
</ul>
<div
align=
"right"
>
<a
href=
"Login.jsp"
><button
class=
"btn btn-primary"
>
Logout
</button></a>
</div>
</div>
</div>
</nav>
<div
align=
"center"
>
<table
class=
"table table-striped"
border=
"2"
>
<tr>
...
...
@@ -50,7 +65,6 @@
</tr>
<%
}
%>
</table>
<a
href=
"mahasiswaBaru.jsp"
><button
class=
"btn btn-primary"
>
Tambah Data
</button></a>
</div>
</body>
</html>
\ No newline at end of file
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