index.jsp.svn-base
来自「用于JAVA的Web的权限过滤器」· SVN-BASE 代码 · 共 26 行
SVN-BASE
26 行
<%@page contentType="text/html; charset=GBK" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
<title>SecurityFilter Example</title>
</head>
<body>
<h1>SecurityFilter Example</h1>
<%@include file="/menu.jsp" %>
Welcome to the Security Filter example application. Use the menu above to navigate the site.
<hr>
<%=(((dev.trade.common.securityfilter.filter.SecurityRequest)request).isResourceAuthorized("Secure Page"))?"SecurePage Authorized":"SecurePage Not Authorized"%>
<br>
<%=(((dev.trade.common.securityfilter.filter.SecurityRequest)request).isResourceAuthorized("Forbidden Page"))?"Forbidden Authorized":"Forbidden Not Authorized"%>
<hr>
<h2>POST to the Secure Page</h2>
This form POSTs to the Secure Page. By entering a value here and clicking the submit button below, you can
verify that POSTed parameters are maintained through the login sequence.
<form id="loginForm" action="<%=response.encodeURL(request.getContextPath() + "/securePage.jsp")%>" method="POST">
<input type="text" name="postMe">
<input type="submit">
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?