Notice
Recent Posts
Recent Comments
Link
«   2024/06   »
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
Tags
more
Archives
Today
Total
관리 메뉴

WON.dev

customLogin.jsp 본문

SPRING/chapter04_MVC

customLogin.jsp

GAWON 2023. 7. 19. 09:21
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Login Page</title>
<!-- Bootstrap Core CSS -->
<link href="/resources/vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<!-- MetisMenu CSS -->
<link href="/resources/vendor/metisMenu/metisMenu.min.css" rel="stylesheet">
<!-- Custom CSS -->
<link href="/resources/dist/css/sb-admin-2.css" rel="stylesheet">
<!-- Custom Fonts -->
<link href="/resources/vendor/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
<style type="text/css">
	.wrap-div{
	   width: 500px;
	   margin: auto;
	   text-align: center;
	   margin-top: 50px;
	}
</style>
</head>
<body>
	<div class="wrap-div">
        <form role="form" method="post" action="/login">
             <fieldset>
                 <div class="form-group">
                     <input class="form-control" placeholder="아이디" name="username" type="text" autofocus>
                 </div>
                 <div class="form-group">
                     <input class="form-control" placeholder="비밀번호" name="password" type="password">
                 </div>
                 <div class="checkbox">
                     <label>
                         <input name="remember-me" type="checkbox">아이디 기억하기
                     </label>
                 </div>
                 <!-- Change this to a button or input when using this as a form -->
                 <a href="index.html" class="btn btn-lg btn-success btn-block">Login</a>
                 <input type="hidden" name="${_csrf.parameterName}" value="${_csfr.token }">
             </fieldset>
         </form>
   </div>
   
   
	<!-- jQuery -->
    <script src="/resources/vendor/jquery/jquery.min.js"></script>
    <!-- Bootstrap Core JavaScript -->
    <script src="/resources/vendor/bootstrap/js/bootstrap.min.js"></script>
    <!-- Metis Menu Plugin JavaScript -->
    <script src="/resources/vendor/metisMenu/metisMenu.min.js"></script>
    <!-- Custom Theme JavaScript -->
    <script src="/resources/dist/js/sb-admin-2.js"></script>
	<script type="text/javascript">
		$(function() {
			$("a").click(function(e) {
				e.preventDefault(); // 이벤트 막아주기
				$("form").submit();
			});
		});
	</script>
</body>
</html>

'SPRING > chapter04_MVC' 카테고리의 다른 글

web.xml  (0) 2023.07.19
customLogout.jsp  (0) 2023.07.19
accessError.jsp  (0) 2023.07.19
header.jsp  (0) 2023.07.19
footer.jsp  (0) 2023.07.19