login.jsp

来自「电子地图服务器,搭建自己的地图服务」· JSP 代码 · 共 45 行

JSP
45
字号
<%@ taglib uri="/tags/struts-bean" prefix="bean"%>
<%@ taglib uri="/tags/struts-html" prefix="html"%>
<%@ taglib prefix='c' uri='http://java.sun.com/jstl/core'%>
<%@ page import="org.acegisecurity.ui.AbstractProcessingFilter"%>
<%@ page
	import="org.acegisecurity.ui.webapp.AuthenticationProcessingFilter"%>
<%@ page import="org.acegisecurity.AuthenticationException"%>

<form action="<c:url value='/j_acegi_security_check'/>" method="POST">
<table class="info">
	<tbody>
		<tr>
			<td class="label"><bean:message key="label.username" />:</td>
			<td><input tabindex="1" type='text' name='username' size='60'
				<c:if test="${not empty param.login_error}">value='<%= session.getAttribute(AuthenticationProcessingFilter.ACEGI_SECURITY_LAST_USERNAME_KEY) %>'</c:if>></td>
		</tr>
		<tr>
			<td class="label"><bean:message key="label.password" />:</td>
			<td><input tabindex="2" type='password' name='password' size='60' /></td>
		</tr>
		<tr>
			<td></td>
			<td><input type="checkbox" name="_acegi_security_remember_me" />
			<bean:message key="label.rememberLogin" /></td>
		</tr>
		<tr>
			<td></td>
			<td><c:if test="${not empty param.login_error}">
				<font color="red"><bean:message key="error.login.invalidCombo" /></font>
			</c:if></td>
		</tr>

		<tr>
			<td class="label"></td>
			<td class="datum"><html:submit>
				<bean:message key="label.submit" />
			</html:submit><html:reset>
				<bean:message key="label.reset" />
			</html:reset></td>
		</tr>
	</tbody>
</table>

</form>

⌨️ 快捷键说明

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