リスト9:ログインページ~login.jsp


<%@ include file="head.jsp" %> ←head.jspを取り込む(パスに注意)
<html>
<head>
<title>User login page</title>
</head>
<body>
<h2>Login</h2>
<form method="POST" action="j_security_check">
<br> ↓ユーザー名とパスワード入力のテキストボックス
UserID: <input type="text" name="j_username"><br>
Password: <input type="password" name="j_password"><br>
<input type="submit" value="login" name="j_security_check">
</form>
<%@ include file="showinfo.jsp" %> ←セッション情報を表示(パスに注意)
</body>
</html>


本文へ戻る