⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 index.jsp

📁 resinweb服务器源文件
💻 JSP
字号:
<title>Login Example</title><body bgcolor=white><h3>You are: <%java.security.Principal user = request.getUserPrincipal();if (user != null)  out.println(user);else  out.println("nobody important");%></h3>This example illustrates using the form-based servlet 2.2 securityconfiguration.Security is configured by<a href='../view_source.jsp?login/WEB-INF/web.xml'>web.xml</a>.<p>The site has control over the authentication database.  You can createyour own custom<a href='../view_source.jsp?login/WEB-INF/classes/test/TestAuthenticator.java'>authenticator class</a>.<p>If you try to access a <a href='<%= response.encodeURL("protected.jsp?a=b") %>'>protected page</a>, youshould be presented with a login form.  If you succeed in the login, you'llbe able to see the page.<p>Sites that use login to provide personalization can use optional login.Fill in the following form to see this page with your name:<form action='j_security_check' method='POST'><table><tr><td>User: <td><input name='j_username'><br><tr><td>Password (quidditch): <td><input name='j_password' type='password'><br><tr><td><input type=submit><td></table><!-- When the user logs in, direct him back to this page. --><input name='j_uri' type='hidden' value='index.jsp'></form></body>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -