httpauth.jspf

来自「这是linux下ssl vpn的实现程序」· JSPF 代码 · 共 64 行

JSPF
64
字号
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>

<div id="page_login_http">
	<explorer:form styleClass="dialog_form" autocomplete="OFF" method="post" action="/logon.do" focus="<%= focusId %>">
		<div class="dialog_content">
			<logic:equal name="logonForm" property="usernameRequired" value="false">
				<html:hidden name="logonForm" property="username" />
			</logic:equal>
			<table class="dialog_form_table">
				<tbody>
					<logic:equal name="logonForm" property="usernameRequired" value="true">
						<tr>
							<td class="value">
								Click <b>Logon</b> to Continue
							</td>
						</tr>
					</logic:equal>				
					<tr>
						<td class="value">
							<bean:message key="login.password" bundle="security" /> 
							<br/>
							<tiles:insert page="/WEB-INF/jsp/tiles/passwordEntry.jspf"
								flush="false">
								<tiles:put name="textFieldSize" value="20" />
								<tiles:put name="textFieldId" value="password" />
								<tiles:put name="textFieldNumeric" value="false" />
								<tiles:put name="width" value="180" />
							</tiles:insert>
						</td>
					</tr>
				</tbody>
				<tfoot>
					<tr>
						<td colspan="2">							
							<div class="button_bar">
								<div class="formButton">
									<html:submit styleClass="ok"><bean:message key="login.login" bundle="security"/></html:submit>
								</div>
								<logic:equal name="logonForm" property="sessionLocked" value="false">
									<div class="formButton">	
										<html:button property="cancel" styleClass="cancel" 
											onclick="javascript: window.location = '/showLogon.do?reset=true' ; return false">
											<bean:message key="login.cancel" bundle="security"/>
										</html:button>
									</div>
								</logic:equal>
								<logic:equal name="logonForm" property="sessionLocked" value="true">
									<div class="formButton">										
										<html:button property="cancel" styleClass="cancel" 
											onclick="javascript: window.location = '/logoff.do' ; return false">
											<bean:message key="login.cancel" bundle="security"/>
										</html:button>
									</div>
								</logic:equal>
							</div>
						</td>						                        
					</tr>
				</tfoot>
			</table>
		</div>
	</explorer:form> 
</div>

⌨️ 快捷键说明

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