⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 password.jsp

📁 Jbuilder2006开发的严格按MVC设计模式组织开发过程
💻 JSP
字号:
<%@page contentType="text/html; charset=GBK"%>
<%@taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@taglib uri="/WEB-INF/tops.tld" prefix="tops"%>
<%@page import="com.tops.j2eebase.security.*,com.tops.j2eebase.web.outlookmenu.*, java.util.*"%>
<!-- 检查用户是否已登陆-->
<%
  LoginUser user = (LoginUser) request.getSession().getAttribute(com.tops.j2eebase.security.LoginUserFactory.getLoginUserFactory().getSessionValName());
  if (user == null)
    return;
%>
<!--****************-->
<html>
<head>
<html:base/>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<tops:includeCSS fileName="style"/>
<tops:includeCSS fileName="headstyle"/>
<tops:includeJs fileName="common"/>
<tops:includeJs fileName="Table"/>
<script language="JavaScript" type="text/JavaScript">
<!--
function doSave() {
  if (actfrmTopsSystemUser.oldPassword.value.trim() == "") {
    alert("请输入原密码!");
    actfrmTopsSystemUser.oldPassword.focus();
    return false;
  }
  if (actfrmTopsSystemUser.userPassword.value.trim() == "") {
    alert("请输入新密码!");
    actfrmTopsSystemUser.userPassword.focus();
    return false;
  }
  if (actfrmTopsSystemUser.checkPassword.value.trim() == "") {
    alert("请再输入一次新密码!");
    actfrmTopsSystemUser.checkPassword.focus();
    return false;
  }
  if (actfrmTopsSystemUser.checkPassword.value.trim() == actfrmTopsSystemUser.userPassword.value.trim()) {
    actfrmTopsSystemUser.submit();
  } else {
    alert("新密码确认错误,请重新输入新密码!");
    actfrmTopsSystemUser.oldPassword.value = "";
    actfrmTopsSystemUser.checkPassword.value = "";
    actfrmTopsSystemUser.userPassword.focus();
    return false;
  }
}

function confirmMsg(msg){
  userForm.oldPassword.value='';
  userForm.userPassword.value='';
  userForm.checkPassword.value='';
  alert(msg);
}
//-->
</script>
</head>
<body>
<html:form action="/actTopsSystemUser.do?method=changepwdresult" method="POST">
  <tops:showPageFunction pageFunction="系统管理----修改密码"/>
  <tops:toolbar>
    <tops:toolbutton caption="保存" image="page_save" onClick="doSave()"/>
  </tops:toolbar>
  <table width="100%" border="0" cellspacing="1" cellpadding="0">
    <tr>
      <td width="15%" height="20" align="center">原&nbsp;&nbsp;密&nbsp;&nbsp;码</td>
      <td>
        <input type="password" name="oldPassword" maxlength="16" style="width:20%"/>
      </td>
    </tr>
    <tr>
      <td height="20" align="center">新&nbsp;&nbsp;密&nbsp;&nbsp;码</td>
      <td>
        <input type="password" name="userPassword" maxlength="16" style="width:20%"/>
      </td>
    </tr>
    <tr>
      <td height="20" align="center">确认新密码</td>
      <td>
        <input type="password" name="checkPassword" maxlength="16" style="width:20%"/>
      </td>
    </tr>
  </table>
</html:form>
</body>
</html>

⌨️ 快捷键说明

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