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 | <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <meta name ="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <title>강의평가 웹 사이트</title> <!-- 부트스트랩 CSS 추가하기 --> <link rel="stylesheet" href="./css/bootstrap.min.css"> <!-- 커스텀 CSS 추가하기 --> <link rel="stylesheet" href="./css/custom.css"> </head> <body> <nav class="navbar navbar-expand-lg navbar-light bg-light"> <a class = "navbar-brand" href="index.jsp">강의평가 웹 사이트 </a> <button class = "navbar-toggler" type="button" data-toggle="collapse" data-target="#navbar"> <span class ="navbar-toggler-icon"></span> </button> <div id= "navbar" class="collapse navbar-collapse"> <ul class="navbar-nav mr-auto"> <li class="nav-item active"> <a class="nav-link" href="index.jsp">메인</a> </li> <li class="nav-item dropdown"> <a class ="nav-link dropdown-toggle" id="dropdown" data-toggle="dropdown"> 회원관리 </a> <div class="dropdown-menu" aria-labelledby="dropdown"> <a class = "dropdown-item" href="#">로그인</a> <a class = "dropdown-item" href="#">회원가입</a> <a class = "dropdown-item" href="#">로그아웃</a> </div> </li> </ul> <form class="form-inline my-2 my-lg-0"> <input class="form-control mr-sm-2" type="search" placeholder="내용을 입력하세요." aria-label="Search"> <button class="btn-btn-outline-sucess my-2 my-sm-0" type="submit">검색</button> </form> </div> </nav> <section class="container"> <form method="get" action="./index.jsp" class="form-inline mt-3"> <select name="lectureDivide" class="form-control mx-1 mt-2"> <option value="전체">전체</option> <option value="전공">전공</option> <option value="교양">교양</option> <option value="기타">기타</option> </select> <input type="text" name="search" class="form-control mx-1 mt-2" placeholder="내용을 입력하세요."> <button type="submit" class="btn btn-primary mx-1 mt-2">검색</button> <a class="btn btn-primary mx-1 mt-2" data-toggle="modal" href="#regisyerModal">등록하기</a> <a class="btn btn-danger mx-1 mt-2" data-toggle="modal" href="#reportModal">신고</a> </form> </section> <!-- 제이쿼리 자바스크립트 추가하기 --> <script src="./js/jquery.min.js"></script> <!-- 파퍼 자바스크립트 추가하기 --> <script src="./js/pooper.js"></script> <!-- 부트스트랩 자바스크립트 추가하기 --> <script src="./js/bootstrap.min.js"></script> </body> </html> | cs |
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 | <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <meta name ="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <title>강의평가 웹 사이트</title> <!-- 부트스트랩 CSS 추가하기 --> <link rel="stylesheet" href="./css/bootstrap.min.css"> <!-- 커스텀 CSS 추가하기 --> <link rel="stylesheet" href="./css/custom.css"> </head> <body> <nav class="navbar navbar-expand-lg navbar-light bg-light"> <a class = "navbar-brand" href="index.jsp">강의평가 웹 사이트 </a> <button class = "navbar-toggler" type="button" data-toggle="collapse" data-target="#navbar"> <span class ="navbar-toggler-icon"></span> </button> <div id= "navbar" class="collapse navbar-collapse"> <ul class="navbar-nav mr-auto"> <li class="nav-item active"> <a class="nav-link" href="index.jsp">메인</a> </li> <li class="nav-item dropdown"> <a class ="nav-link dropdown-toggle" id="dropdown" data-toggle="dropdown"> 회원관리 </a> <div class="dropdown-menu" aria-labelledby="dropdown"> <a class = "dropdown-item" href="#">로그인</a> <a class = "dropdown-item" href="#">회원가입</a> <a class = "dropdown-item" href="#">로그아웃</a> </div> </li> </ul> <form class="form-inline my-2 my-lg-0"> <input class="form-control mr-sm-2" type="search" placeholder="내용을 입력하세요." aria-label="Search"> <button class="btn-btn-outline-sucess my-2 my-sm-0" type="submit">검색</button> </form> </div> </nav> <section class="container"> <form method="get" action="./index.jsp" class="form-inline mt-3"> <select name="lectureDivide" class="form-control mx-1 mt-2"> <option value="전체">전체</option> <option value="전공">전공</option> <option value="교양">교양</option> <option value="기타">기타</option> </select> <input type="text" name="search" class="form-control mx-1 mt-2" placeholder="내용을 입력하세요."> <button type="submit" class="btn btn-primary mx-1 mt-2">검색</button> <a class="btn btn-primary mx-1 mt-2" data-toggle="modal" href="#regisyerModal">등록하기</a> <a class="btn btn-danger mx-1 mt-2" data-toggle="modal" href="#reportModal">신고</a> </form> </section> <div class ="modal fade" id="registerModal" tabindex="-1" role="dialog" aria-labelledby="modal" aria-hidden = "true"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title" id="modal">평가 등록</h5> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> <div class="modal-body"></div> </div> </div> </div> <!-- 제이쿼리 자바스크립트 추가하기 --> <script src="./js/jquery.min.js"></script> <!-- 파퍼 자바스크립트 추가하기 --> <script src="./js/pooper.js"></script> <!-- 부트스트랩 자바스크립트 추가하기 --> <script src="./js/bootstrap.min.js"></script> </body> </html> | cs |
매번 탭키를 안누르고 코드를 작성하는게 습관이 되었는데, 코드가 길어지니까 가독성이 너무 떨어지는거 같다. 앞으로는 탭키를 누르며 코드간의 구분을 확실히 해야겠다.
아마 유투브 강의 혹은 현장 강의를 들으시는분들께서 가장 많이 하시는 실수가 코드를 똑같이 따라 치고 부트스트랩 jquery popper등등 정확히 기입을 시켰는데 안되는 경우가 있을것이다. 그렇다면 head 부분에 아래의 코드를 복붙하시게 되면 정상적이게 작동하는것을 볼수 있을것이다.
1 2 3 4 5 6 | <head> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/css/bootstrap.min.css" integrity="sha384-GJzZqFGwb1QTTN6wy59ffF1BuGJpLSa9DkKMp0DgiMDm4iYMj70gZWKYbI706tWS" crossorigin="anonymous"> <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.6/umd/popper.min.js" integrity="sha384-wHAiFfRlMFy6i5SRaxvfOCifBUQy1xHdJ/yoi7FRNXMRBu5WHdZYu1hA6ZOblgut" crossorigin="anonymous"></script> <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/js/bootstrap.min.js" integrity="sha384-B0UglyR+jN6CkvvICOB2joaf5I4l3gm9GU6Hc1og6Ls7i6U/mkkaduKaBhlAXv9k" crossorigin="anonymous"></script> </head> | cs |
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 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 | <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <!doctype html> <html> <head> <title>강의평가 웹 사이트</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/css/bootstrap.min.css" integrity="sha384-GJzZqFGwb1QTTN6wy59ffF1BuGJpLSa9DkKMp0DgiMDm4iYMj70gZWKYbI706tWS" crossorigin="anonymous"> <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.6/umd/popper.min.js" integrity="sha384-wHAiFfRlMFy6i5SRaxvfOCifBUQy1xHdJ/yoi7FRNXMRBu5WHdZYu1hA6ZOblgut" crossorigin="anonymous"></script> <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/js/bootstrap.min.js" integrity="sha384-B0UglyR+jN6CkvvICOB2joaf5I4l3gm9GU6Hc1og6Ls7i6U/mkkaduKaBhlAXv9k" crossorigin="anonymous"></script> </head> <body> <nav class="navbar navbar-expand-lg navbar-light bg-light"> <a class="navbar-brand" href="index.jsp">강의평가 웹 사이트</a> <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbar"> <span class="navbar-toggler-icon"></span> </button> <div class="collapse navbar-collapse" id="navbar"> <ul class="navbar-nav mr-auto"> <li class="nav-item active"> <a class="nav-link" href="index.jsp">메인</a> </li> <li class="nav-item dropdown"> <a class="nav-link dropdown-toggle" id="dropdown" data-toggle="dropdown"> 회원 관리 </a> <div class="dropdown-menu" aria-labelledby="dropdown"> <a class="dropdown-item" href="userLogin.jsp">로그인</a> <a class="dropdown-item" href="userRegister.jsp">회원가입</a> <a class="dropdown-item" href="userLogout.jsp">로그아웃</a> </div> </li> </ul> <form action="./index.jsp" method="get" class="form-inline my-2 my-lg-0"> <input type="text" name="search" class="form-control mr-sm-2" placeholder="내용을 입력하세요."> <button class="btn btn-outline-success my-2 my-sm-0" type="submit">검색</button> </form> </div> </nav> <div class="container"> <form method="get" action="./index.jsp" class="form-inline mt-3"> <select name="lectureDivide" class="form-control mx-1 mt-2"> <option value="전체">전체</option> <option value="전공">전공</option> <option value="교양">교양</option> <option value="기타">기타</option> </select> <input type="text" name="search" class="form-control mx-1 mt-2" placeholder="내용을 입력하세요."> <button type="submit" class="btn btn-primary mx-1 mt-2">검색</button> <a class="btn btn-primary mx-1 mt-2" data-toggle="modal" href="#registerModal">등록하기</a> <a class="btn btn-danger ml-1 mt-2" data-toggle="modal" href="#reportModal">신고</a> </form> <div class="card bg-light mt-3"> <div class="card-header bg-light"> <div class="row"> <div class="col-8 text-left">자바프로그래밍 <small>김경빈</small></div> <div class="col-4 text-right"> 종합 <span style="color: red;">A</span> </div> </div> </div> <div class="card-body"> <h5 class="card-title"> 정말 좋은 강의에요. <small>(2023 1학기)</small> </h5> <p class="card-text"> 학점도 잘 나오고 너무 좋은 것 같습니다.</p> <div class="row"> <div class="col-9 text-left"> 성적은 어떻게 주시나요? <span style="color: red;">A</span> 조모임이 많은가요? <span style="color: red;">A</span> 과제가 많은가요? <span style="color: red;">B</span> <span style="color: green;">(추천: 15★)</span> </div> <div class="col-3 text-right"> <a onclick="return confirm('추천하시겠습니까?')" href="./likeAction.jsp?evaluationID=">추천</a> <a onclick="return confirm('삭제하시겠습니까?')" href="./deleteAction.jsp?evaluationID=">삭제</a> </div> </div> </div> </div> <div class="card bg-light mt-3"> <div class="card-header bg-light"> <div class="row"> <div class="col-8 text-left">C프로그래밍 <small>박경빈</small></div> <div class="col-4 text-right"> 종합 <span style="color: red;">B</span> </div> </div> </div> <div class="card-body"> <h5 class="card-title"> 나쁘지 않은 것 같습니다. <small>(2022년 2학기)</small> </h5> <p class="card-text">C프로그래밍을 처음 배웠는데, 상당히 재미있었던 것 같아요.</p> <div class="row"> <div class="col-9 text-left"> 성적은 어떻게 주시나요? <span style="color: red;">B</span> 조모임이 많은가요? <span style="color: red;">A</span> 과제가 많은가요? <span style="color: red;">B</span> <span style="color: green;">(추천: 1)</span> </div> <div class="col-3 text-right"> <a onclick="return confirm('추천하시겠습니까?')" href="./likeAction.jsp?evaluationID=">추천</a> <a onclick="return confirm('삭제하시겠습니까?')" href="./deleteAction.jsp?evaluationID=">삭제</a> </div> </div> </div> </div> <div class="card bg-light mt-3"> <div class="card-header bg-light"> <div class="row"> <div class="col-8 text-left">리눅스 <small>이경빈</small></div> <div class="col-4 text-right"> 종합 <span style="color: red;">A</span> </div> </div> </div> <div class="card-body"> <h5 class="card-title"> 강의력이 제일 좋은 강의입니다. <small>(2022년 1학기)</small> </h5> <p class="card-text">리눅스 강의 가르치시는 교수님들 중에서 최고로 잘 가르치십니다.</p> <div class="row"> <div class="col-9 text-left"> 성적은 어떻게 주시나요? <span style="color: red;">B</span> 조모임이 많은가요? <span style="color: red;">B</span> 과제가 많은가요? <span style="color: red;">B</span> <span style="color: green;">(추천: 0)</span> </div> <div class="col-3 text-right"> <a onclick="return confirm('추천하시겠습니까?')" href="./likeAction.jsp?evaluationID=">추천</a> <a onclick="return confirm('삭제하시겠습니까?')" href="./deleteAction.jsp?evaluationID=">삭제</a> </div> </div> </div> </div> </div> <ul class="pagination justify-content-center mt-3"> <li class="page-item"> <a class="page-link" href="#">이전</a> </li> <li class="page-item"> <a class="page-link" href="#">다음</a> </li> </ul> <div class="modal fade" id="registerModal" tabindex="-1" role="dialog" aria-labelledby="modal" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title" id="modal">평가 등록</h5> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> <div class="modal-body"> <form action="./evaluationRegisterAction.jsp" method="post"> <div class="form-row"> <div class="form-group col-sm-6"> <label>강의명</label> <input type="text" name="lectureName" class="form-control" maxlength="20"> </div> <div class="form-group col-sm-6"> <label>교수명</label> <input type="text" name="professorName" class="form-control" maxlength="20"> </div> </div> <div class="form-row"> <div class="form-group col-sm-4"> <label>수강 연도</label> <select name="lectureYear" class="form-control"> <option value="2011">2011</option> <option value="2012">2012</option> <option value="2013">2013</option> <option value="2014">2014</option> <option value="2015">2015</option> <option value="2016">2016</option> <option value="2017">2017</option> <option value="2018">2018</option> <option value="2019">2019</option> <option value="2020">2020</option> <option value="2021">2021</option> <option value="2022">2022</option> <option value="2023" selected>2023</option> </select> </div> <div class="form-group col-sm-4"> <label>수강 학기</label> <select name="semesterDivide" class="form-control"> <option name="1학기" selected>1학기</option> <option name="여름학기">여름학기</option> <option name="2학기">2학기</option> <option name="겨울학기">겨울학기</option> </select> </div> <div class="form-group col-sm-4"> <label>강의 구분</label> <select name="lectureDivide" class="form-control"> <option name="전공" selected>전공</option> <option name="교양">교양</option> <option name="기타">기타</option> </select> </div> </div> <div class="form-group"> <label>제목</label> <input type="text" name="evaluationTitle" class="form-control" maxlength="20"> </div> <div class="form-group"> <label>내용</label> <textarea type="text" name="evaluationContent" class="form-control" maxlength="2048" style="height: 180px;"></textarea> </div> <div class="form-row"> <div class="form-group col-sm-3"> <label>종합</label> <select name="totalScore" class="form-control"> <option value="A" selected>A</option> <option value="B">B</option> <option value="C">C</option> <option value="D">D</option> <option value="F">F</option> </select> </div> <div class="form-group col-sm-3"> <label>성적</label> <select name="creditScore" class="form-control"> <option value="A" selected>A</option> <option value="B">B</option> <option value="C">C</option> <option value="D">D</option> <option value="F">F</option> </select> </div> <div class="form-group col-sm-3"> <label>널널</label> <select name="comfortableScore" class="form-control"> <option value="A" selected>A</option> <option value="B">B</option> <option value="C">C</option> <option value="D">D</option> <option value="F">F</option> </select> </div> <div class="form-group col-sm-3"> <label>강의</label> <select name="lectureScore" class="form-control"> <option value="A" selected>A</option> <option value="B">B</option> <option value="C">C</option> <option value="D">D</option> <option value="F">F</option> </select> </div> </div> <div class="modal-footer"> <button type="button" class="btn btn-secondary" data-dismiss="modal">취소</button> <button type="submit" class="btn btn-primary">등록하기</button> </div> </form> </div> </div> </div> </div> <div class="modal fade" id="reportModal" tabindex="-1" role="dialog" aria-labelledby="modal" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title" id="modal">신고하기</h5> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> <div class="modal-body"> <form method="post" action="./reportAction.jsp"> <div class="form-group"> <label>신고 제목</label> <input type="text" name="reportTitle" class="form-control" maxlength="20"> </div> <div class="form-group"> <label>신고 내용</label> <textarea type="text" name="reportContent" class="form-control" maxlength="2048" style="height: 180px;"></textarea> </div> <div class="modal-footer"> <button type="button" class="btn btn-secondary" data-dismiss="modal">취소</button> <button type="submit" class="btn btn-danger">신고하기</button> </div> </form> </div> </div> </div> </div> <footer class="bg-dark mt-4 p-5 text-center" style="color: #FFFFFF;"> Copyright ⓒ 2023 김경빈 All Rights Reserved. </footer> <!-- 제이쿼리 자바스크립트 추가하기 --> <script src="C:\Users\김경빈\eclipse-workspace\Lecture Evaluation\src\main\webapp\js\jquery.min.js"></script> <!-- Popper 자바스크립트 추가하기 --> <script src="C:\Users\김경빈\eclipse-workspace\Lecture Evaluation\src\main\webapp\js\popper.min.js"></script> <!-- 부트스트랩 자바스크립트 추가하기 --> <script src="C:\Users\김경빈\eclipse-workspace\Lecture Evaluation\src\main\webapp\js\bootstrap.min.js"></script> </body> </html> | cs |
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 | <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <!doctype html> <html> <head> <title>강의평가 웹 사이트</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <!-- 부트스트랩 CSS 추가하기 --> <link rel="stylesheet" href="./css/bootstrap.min.css"> <!-- 커스텀 CSS 추가하기 --> <link rel="stylesheet" href="./css/custom.css"> </head> <body> <nav class="navbar navbar-expand-lg navbar-light bg-light"> <a class="navbar-brand" href="index.jsp">강의평가 웹 사이트</a> <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbar"> <span class="navbar-toggler-icon"></span> </button> <div class="collapse navbar-collapse" id="navbar"> <ul class="navbar-nav mr-auto"> <li class="nav-item active"> <a class="nav-link" href="index.jsp">메인</a> </li> <li class="nav-item dropdown"> <a class="nav-link dropdown-toggle" id="dropdown" data-toggle="dropdown"> 회원 관리 </a> <div class="dropdown-menu" aria-labelledby="dropdown"> <a class="dropdown-item" href="userLogin.jsp">로그인</a> <a class="dropdown-item" href="userRegister.jsp">회원가입</a> <a class="dropdown-item" href="userLogout.jsp">로그아웃</a> </div> </li> </ul> <form action="./index.jsp" method="get" class="form-inline my-2 my-lg-0"> <input type="text" name="search" class="form-control mr-sm-2" placeholder="내용을 입력하세요."> <button class="btn btn-outline-success my-2 my-sm-0" type="submit">검색</button> </form> </div> </nav> <div class="container mt-3" style="max-width: 560px;"> <form method="post" action="./userLoginAction.jsp"> <div class="form-group"> <label>아이디</label> <input type="text" name="userID" class="form-control"> </div> <div class="form-group"> <label>비밀번호</label> <input type="password" name="userPassword" class="form-control"> </div> <button type="submit" class="btn btn-primary">로그인</button> </form> </div> <footer class="bg-dark mt-4 p-5 text-center" style="color: #FFFFFF;"> Copyright ⓒ 2023 김경빈 All Rights Reserved. </footer> <!-- 제이쿼리 자바스크립트 추가하기 --> <script src="./js/jquery.min.js"></script> <!-- Popper 자바스크립트 추가하기 --> <script src="./js/popper.min.js"></script> <!-- 부트스트랩 자바스크립트 추가하기 --> <script src="./js/bootstrap.min.js"></script> </body> </html> | cs |
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 | <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <!doctype html> <html> <head> <title>강의평가 웹 사이트</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <!-- 부트스트랩 CSS 추가하기 --> <link rel="stylesheet" href="./css/bootstrap.min.css"> <!-- 커스텀 CSS 추가하기 --> <link rel="stylesheet" href="./css/custom.css"> </head> <body> <nav class="navbar navbar-expand-lg navbar-light bg-light"> <a class="navbar-brand" href="index.jsp">강의평가 웹 사이트</a> <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbar"> <span class="navbar-toggler-icon"></span> </button> <div class="collapse navbar-collapse" id="navbar"> <ul class="navbar-nav mr-auto"> <li class="nav-item active"> <a class="nav-link" href="index.jsp">메인</a> </li> <li class="nav-item dropdown"> <a class="nav-link dropdown-toggle" id="dropdown" data-toggle="dropdown"> 회원 관리 </a> <div class="dropdown-menu" aria-labelledby="dropdown"> <a class="dropdown-item" href="userLogin.jsp">로그인</a> <a class="dropdown-item" href="userRegister.jsp">회원가입</a> <a class="dropdown-item" href="userLogout.jsp">로그아웃</a> </div> </li> </ul> <form action="./index.jsp" method="get" class="form-inline my-2 my-lg-0"> <input type="text" name="search" class="form-control mr-sm-2" placeholder="내용을 입력하세요."> <button class="btn btn-outline-success my-2 my-sm-0" type="submit">검색</button> </form> </div> </nav> <div class="container mt-3" style="max-width: 560px;"> <form method="post" action="./userRegisterAction.jsp"> <div class="form-group"> <label>아이디</label> <input type="text" name="userID" class="form-control"> </div> <div class="form-group"> <label>비밀번호</label> <input type="password" name="userPassword" class="form-control"> </div> <div class="form-group"> <label>이메일</label> <input type="email" name="userEmail" class="form-control"> </div> <button type="submit" class="btn btn-primary">회원가입</button> </form> </div> <footer class="bg-dark mt-4 p-5 text-center" style="color: #FFFFFF;"> Copyright ⓒ 2023 김경빈 All Rights Reserved. </footer> <!-- 제이쿼리 자바스크립트 추가하기 --> <script src="./js/jquery.min.js"></script> <!-- Popper 자바스크립트 추가하기 --> <script src="./js/popper.min.js"></script> <!-- 부트스트랩 자바스크립트 추가하기 --> <script src="./js/bootstrap.min.js"></script> </body> </html> | cs |
이처럼 정상적이게 출력되는것을 알수있다.
마지막으로 내일 작업할 데이터베이스를 미리 구축해 놓았다.