📄 signon.jsp
字号:
<%-- Copyright 2004 Sun Microsystems, Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. - Redistribution in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. Neither the name of Sun Microsystems, Inc. or the names of contributors may be used to endorse or promote products derived from this software without specific prior written permission. This software is provided "AS IS," without a warranty of any kind. ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE HEREBY EXCLUDED. SUN AND ITS LICENSORS SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR DISTRIBUTING THE SOFTWARE OR ITS DERIVATIVES. IN NO EVENT WILL SUN OR ITS LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA, OR FOR DIRECT, INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER CAUSED AND REGARDLESS OF THE THEORY OF LIABILITY, ARISING OUT OF THE USE OF OR INABILITY TO USE SOFTWARE, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. You acknowledge that Software is not designed, licensed or intended for use in the design, construction, operation or maintenance of any nuclear facility. $Id: signon.jsp,v 1.4 2004/01/21 00:12:53 gmurray71 Exp $ --%><%@ taglib uri="/WEB-INF/waftags.tld" prefix="waf" %><%@ taglib prefix="c" uri="/WEB-INF/c.tld" %><script language="javascript"> function initForm() { newCustomerForm.submitButton.disabled = true; } function clearFields() { newCustomerForm.new_username.value = ""; newCustomerForm.new_password.value = ""; newCustomerForm.new_password2.value = ""; newCustomerForm.submitButton.disabled = false; } function enableSubmit() { newCustomerForm.submitButton.disabled = false; }</script><body onLoad="initForm()"><h1>Sign In</h1><hr noshade="noshade"><p><h2>Are you a returning customer?</h2></p><table cellpadding="20" cellspacing="0" border="1"> <tr> <td valign="top"> <waf:form name="existingcustomer" action="j_signon_check" method="POST"> <table cellpadding="5" cellspacing="0" border="0"> <tr> <td align="center" colspan="2"> <b>Yes.</b> </td> </tr> <tr> <td align="right"> <b><label for="username_id">User Name</label>:</b> </td> <td> <c:choose> <c:when test="${cookie['bp_signon'] != null && cookie['bp_signon'] !=''}"> <waf:input type="text" id="username_id" size="15" name="j_username" validation="validation"> <waf:value><c:out value="${cookie['bp_signon'].value}"/></waf:value> </waf:input> </td> </tr> <tr> <td align="right"> <b><label for="password_id">Password</label>:</b> </td> <td> <waf:input type="password" id="password_id" size="15" name="j_password" validation="validation" value=""/> </td> </tr> </c:when> <c:otherwise> <waf:input type="text" id="username_id" size="15" name="j_username" validation="validation" value="j2ee"/> </td> </tr> <tr> <td align="right"> <b><label for="password_id">Password</label>:</b> </td> <td> <waf:input type="password" id="password_id" size="15" name="j_password" validation="validation" value="j2ee"/> </td> </tr> </c:otherwise> </c:choose> <tr> <td align="center" colspan="2"> <input name="Sign In" type="SUBMIT" value="Sign In"> </td> </tr> <tr> <td align="center" colspan="2"> <label for="remember_id">Remember My User Name</label> <waf:checkbox name="j_remember_username" id="remember_id"> <waf:checked><c:out value="${cookie['bp_signon'] != null && cookie['bp_signon'] !=''}"/></waf:checked> </waf:checkbox> </td> </tr> </table> </waf:form> </td> <td valign="top"> <waf:form name="newCustomerForm" action="createsignon.do" method="POST"> <table cellpadding="5" cellspacing="0" border="0"> <tr> <td align="center" colspan="2"> <b>No. I would like to sign up for an account.</b> </td> </tr> <tr> <td align="right"> <b><label for="new_username">User Name</label>:</b> </td> <td> <waf:input type="text" id="new_username" size="15" validation="validation" name="j_username" onClick="clearFields()" value="Enter User Name" /> </td> </tr> <tr> <td c align="right"> <b><label for="new_password">Password</label>:</b> </td> <td > <waf:input type="password" id="new_password" size="15" validation="validation" name="j_password" value="Enter Password" /> </td> </tr> <tr> <td align="right"> <b><label for="new_password2">Password (Repeat)</label>:</b> </td> <td> <waf:input type="password" id="new_password2" size="15" validation="validation" name="j_password_2" value="Enter Password" /> </td> </tr> <tr> <td align="center" colspan="2"> <input name="submitButton" type="SUBMIT" value="Create New Account"> </td> </tr> </table> </waf:form> </td> </tr></table></body>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -