-
Notifications
You must be signed in to change notification settings - Fork 0
/
member_output.jsp
42 lines (42 loc) · 1.01 KB
/
member_output.jsp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<%@ page language="java" contentType="text/html; charset=EUC-KR"
pageEncoding="EUC-KR" %>
<% request.setCharacterEncoding("euc-kr"); %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=EUC-KR">
<title>Insert title here</title>
</head>
<body>
<jsp:useBean id="mb" class="book.MemberBean"/>
<jsp:useBean id="member" class="book.Member"/>
<jsp:setProperty name="member" property="*"/>
<%
if(request.getParameter("userid") != "" && request.getParameter("passwd") !=""){
if(mb.checkID(request.getParameter("userid"))){
if(mb.insertDB(member)){
response.sendRedirect("login_form.html");
}
else
throw new Exception("DB 입력 오류");
}
else {
%>
<script>
alert("중복된 ID가 있습니다!!");
history.go(-1);
</script>
<%
}
}
else {
%>
<script>
alert("ID 또는 PASSWORD를 입력해 주세요!!");
history.go(-1);
</script>
<%
}
%>
</body>
</html>