1. 개요
member 폴더 아래에 pro와 view라는 폴더를 생성하였다. 각각 화면과 처리를 담당하는 JSP를 나누기 위해서이다.
2. 소스 코드
■ JoinForm,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 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 | <%@ page language="java" contentType="text/html; charset=EUC-KR" pageEncoding="EUC-KR"%> <html> <head> <title>회원가입 화면</title> <style> #wrap{ width:530px; margin-left:auto; margin-right:auto; text-align:center; } table{ border:3px solid skyblue } td{ border:1px solid skyblue } #title{ background-color:skyblue } </style> </head> <body> <!-- 왼쪽, 오른쪽 바깥여백을 auto로 주면 중앙정렬된다. --> <div id="wrap"> <br><br> <b><font size="6" color="gray">회원가입</font></b> <br><br><br> <form> <table> <tr> <td id="title">아이디</td> <td> <input type="text" name="id" maxlength="20"> <input type="button" value="중복확인" > </td> </tr> <tr> <td id="title">비밀번호</td> <td> <input type="password" name="password" maxlength="15"> </td> </tr> <tr> <td id="title">비밀번호 확인</td> <td> <input type="password" name="password" maxlength="15"> </td> </tr> <tr> <td id="title">이름</td> <td> <input type="text" name="name" maxlength="40"> </td> </tr> <tr> <td id="title">성별</td> <td> <input type="radio" name="gender" value="남" checked>남 <input type="radio" name="gender" value="여" checked>여 </td> </tr> <tr> <td id="title">생일</td> <td> <input type="text" name="birth_yy" maxlength="4" placeholder="년(4자)" size="6" > <select name="birth_mm"> <option value="">월</option> <option value="01" >1</option> <option value="02" >2</option> <option value="03" >3</option> <option value="04" >4</option> <option value="05" >5</option> <option value="06" >6</option> <option value="07" >7</option> <option value="08" >8</option> <option value="09" >9</option> <option value="10" >10</option> <option value="11" >11</option> <option value="12" >12</option> </select> <input type="text" name="birth_dd" maxlength="2" placeholder="일" size="4" > </td> </tr> <tr> <td id="title">이메일</td> <td> <input type="text" name="email_1" maxlength="30">@ <select name="email_2"> <option>naver.com</option> <option>daum.net</option> <option>gmail.com</option> <option>nate.com</option> </select> </td> </tr> <tr> <td id="title">휴대전화</td> <td> <input type="text" name="phone" /> </td> </tr> <tr> <td id="title">주소</td> <td> <input type="text" size="50" name="address"/> </td> </tr> </table> <br> <input type="submit" value="가입"/> <input type="button" value="취소"> </form> </div> </body> </html> | cs |
3. 실행 결과
'코딩 > JSP' 카테고리의 다른 글
[JSP개발] 회원가입 - 자바빈(JavaBean) 적용 (10) | 2016.11.21 |
---|---|
[JSP개발] 회원가입 - 파라미터값 전달 (4) | 2016.11.21 |
JSP 페이지 모듈화 <jsp:include> 액션태그 (2) | 2016.11.17 |
JSP 자바빈(JavaBean)과 <jsp:useBean> 액션태그 (1) | 2016.11.16 |
JSP에서 DB연동 하기 - JNDI, DBCP(커넥션풀) 이용 (12) | 2016.11.14 |