📄 passwordupdate.jsp
字号:
<%@ page contentType="text/html; charset=UTF-8" %>
<%--
* @author Sujatha
* @version 1.0
*
* Development Environment : Oracle9i JDeveloper
* Name of the Application : passwordUpdate.jsp
* Creation/Modification History :
*
* Sujatha 27-Dec-2001 Created
* Sujatha 07-Jan-2003 Incorporated Struts framework
*
* Overview of Application
* This jsp displays the response for user password updation/ lookup
*
--%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<HEAD>
<TITLE><bean:message key="title.passwordupdation"/></TITLE>
<!-- To prevent caching -->
<%
response.setHeader("Cache-Control","no-cache"); // HTTP 1.1
response.setHeader("Pragma","no-cache"); // HTTP 1.0
response.setDateHeader ("Expires", -1); // Prevents caching at the proxy server
%>
<SCRIPT>
function submitForm() {
var frm = document.Password;
// Check if all the required fields have been entered by the user before
// submitting the form
if( frm.userName.value == "" ) {
alert("<bean:message key='login.javascript.usernameerror'/>");
frm.userName.focus();
return ;
}
if( frm.oldpassword.value == "" ) {
alert("<bean:message key='login.javascript.oldpwderror'/>");
frm.oldpassword.focus();
return ;
}
if( frm.newpassword.value == "" ) {
alert("<bean:message key='login.javascript.newpwderror'/>");
frm.newpassword.focus();
return ;
}
if( frm.newpasswordconfirm.value == "" ) {
alert("<bean:message key='login.javascript.newpwdconfirmerror'/>");
frm.newpasswordconfirm.focus();
return ;
}
if( frm.newpassword.value != frm.newpasswordconfirm.value ) {
alert("Your two new password values entered do not match. Please try again");
frm.newpasswordconfirm.focus();
return ;
}
frm.submit();
}
</SCRIPT>
</HEAD>
<jsp:include page="userHeader.jsp" flush="true"></jsp:include>
<FORM NAME="Password" ACTION="changepassword.do?command=changePassword" METHOD=POST>
<TABLE width="100%" border="0" cellspacing="0" cellpadding="5">
<TR align="center">
<TD width="22%" class="SubHeading"><bean:message key="subheading.passwordupdation"/></TD>
<TD width="77%"><HR></TD>
</TR>
<logic:present name="message" scope="request">
<TR>
<TD width="20%" align="center" class="ErrorText" colspan="2">
<img src="images/warning.gif"> <%=request.getAttribute("message")%>
</TD>
</TR>
</logic:present>
<TR>
<TD colspan="2">
<CENTER>
<TABLE width="100%" border="0" cellspacing="0"
cellpadding="5">
<TR>
<TD align="right" width="50%" class="Prompt"> <bean:message key="prompt.userName"/></TD>
<TD align="left" width="50%">
<INPUT type="text"
name="userName" size=25 maxlength=20>
</TD>
</TR>
<TR align="center">
<TD align="right" width="50%" class="Prompt"><bean:message key="prompt.oldpassword"/></TD>
<TD align="left" width="50%">
<INPUT type="password" name=
"oldpassword" size=25 maxlength=20>
</TD>
</TR>
<TR align="center">
<TD align="right" width="50%" class="Prompt"><bean:message key="prompt.newpassword"/></TD>
<TD align="left" width="50%">
<INPUT type="password" name=
"newpassword" size=25 maxlength=20>
</TD>
</TR>
<TR align="center">
<TD align="right" width="50%" class="Prompt"><bean:message key="prompt.newpasswordconfirm"/>
</TD>
<TD align="left" width="50%">
<INPUT type="password" name=
"newpasswordconfirm" size=25 maxlength=20>
</TD>
</TR>
</TABLE>
<BR>
<TABLE width="50%" border="0" cellspacing="0" cellpadding="3" align=center>
<TR>
<TD width="35%"> </TD>
<TD width="10%" align="right"> <A HREF="javascript:submitForm()">
<html:img srcKey="image.update" border="0"/></A> </TD>
<TD width="10%" align="center">
<A HREF="javascript:document.forms[1].reset();">
<html:img srcKey="image.reset" border="0"/></A> </TD>
<TD width="24%"> </TD>
</TR>
</TABLE>
</center>
</TABLE>
</FORM>
<jsp:include page="commonFooter.jsp" flush="true"></jsp:include>
</BODY>
</html:html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -