WebアプリケーションのJSPログイン・ページでは、J2EEセキュリティ・コンテナ・ログイン・メソッドj_security_check
を使用する必要があります。次にサンプルlogin.jspを示します。
<html>
<head>
<title>Login Page</title>
<body bgcolor="white">
<form method="POST" action="j_security_check" >
<table border="0" cellspacing="5">
<tr>
<th align="right">Username:</th>
<td align="left"><input type="text" name="j_username"></td>
</tr>
<tr>
<th align="right">Password:</th>
<td align="left"><input type="password" name="j_password"></td>
</tr>
<tr>
<td align="right"><input type="submit" value="Log In"></td>
<td align="left"><input type="reset"></td>
</tr>
</table>
</form>
</body>
</html>
J2EEアプリケーションのセキュリティの開発
Oracle ADFアプリケーションでのセキュリティの実装
Copyright © 1997, 2006, Oracle. All rights reserved.