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

📄 alteruserpassword_jsp.java

📁 一个基于JAVA的BS结构的宠物诊所管理系统.是当年在学校时写的,大家指点一下.
💻 JAVA
字号:
package org.apache.jsp;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;

public final class AlterUserPassword_jsp extends org.apache.jasper.runtime.HttpJspBase
    implements org.apache.jasper.runtime.JspSourceDependent {

  private static java.util.Vector _jspx_dependants;

  static {
    _jspx_dependants = new java.util.Vector(2);
    _jspx_dependants.add("/WEB-INF/tags/head.tag");
    _jspx_dependants.add("/WEB-INF/tags/cauda.tag");
  }

  public java.util.List getDependants() {
    return _jspx_dependants;
  }

  public void _jspService(HttpServletRequest request, HttpServletResponse response)
        throws java.io.IOException, ServletException {

    JspFactory _jspxFactory = null;
    PageContext pageContext = null;
    HttpSession session = null;
    ServletContext application = null;
    ServletConfig config = null;
    JspWriter out = null;
    Object page = this;
    JspWriter _jspx_out = null;
    PageContext _jspx_page_context = null;


    try {
      _jspxFactory = JspFactory.getDefaultFactory();
      response.setContentType("text/html; charset=GBK");
      pageContext = _jspxFactory.getPageContext(this, request, response,
      			null, true, 8192, true);
      _jspx_page_context = pageContext;
      application = pageContext.getServletContext();
      config = pageContext.getServletConfig();
      session = pageContext.getSession();
      out = pageContext.getOut();
      _jspx_out = out;

      out.write("\r\n\r\n\r\n<HTML>\r\n<HEAD>\r\n<TITLE>管理系统之修改用户密码</TITLE>\r\n<META http-equiv=Content-Type content=\"text/html; charset=gbk\">\r\n<style type=\"text/css\">\r\n  <!--\r\n    .STYLE1 {\r\n\tcolor: #FF0000;\r\n\tfont-size: 14px;\r\n}\r\n.STYLE9 {\r\n\tcolor: #FF9900;\r\n\tfont-weight: bold;\r\n\tfont-size: 16px;\r\n}\r\n.STYLE10 {color: #00CC99}\r\n.STYLE12 {\r\n\tcolor: #00CC99;\r\n\tfont-weight: bold;\r\n\tfont-size: 14px;\r\n}\r\n  -->\r\n</style>\r\n<script language=\"javascript\" type=\"\" src=\"datasrc/javascript/util.js\"></script>\r\n<script type=\"\" language=\"JavaScript\">\r\n\t\r\n      function alterNewUserAction(){\r\n      \t//alterUserPswdFrom userName userPassword newPasswordOne newPasswordTowe\r\n      \tif(!isUserName(document.alterUserPswdFrom.userName)){\r\n      \t\t\treturn false;\r\n      \t\t}\r\n      \t\r\n      \tvar oldPswd=document.alterUserPswdFrom.userPassword.value;\r\n      \tif(oldPswd==''){\r\n      \t\talert('请输入原密码');\r\n      \t\tdocument.alterUserPswdFrom.userPassword.focus();\r\n      \t\t\treturn false;\r\n      \t}\r\n      \tif(oldPswd.length>16||oldPswd.length<6){\r\n      \t\twindow.alert(\"密码必须大于或等于6位且不能超过16位!\");\r\n");
      out.write("\t\t\t\t\tdocument.alterUserPswdFrom.userPassword.select();\r\n      \t\t\treturn false;\r\n      \t}\r\n      \t\r\n      \t//newPasswordOne newPasswordTowe\r\n      \tvar newPswd=document.alterUserPswdFrom.newPasswordOne.value;\r\n      \tif(newPswd==''){\r\n      \t\talert('请输入新密码');\r\n      \t\tdocument.alterUserPswdFrom.newPasswordOne.focus();\r\n      \t\t\treturn false;\r\n      \t}\r\n      \tif(newPswd.length>16||newPswd.length<6){\r\n      \t\twindow.alert(\"新密码必须大于或等于6位且不能超过16位!\");\r\n\t\t\t\t\tdocument.alterUserPswdFrom.newPasswordOne.select();\r\n      \t\t\treturn false;\r\n      \t}\r\n      \t\r\n      \tif(!validatePassword(document.alterUserPswdFrom.newPasswordOne,document.alterUserPswdFrom.newPasswordTowe)){\r\n      \t\t\treturn false;\r\n      \t\t}\r\n      \t\t//return false;\r\n\t      \treturn true;\r\n      }\r\n</script>\r\n</HEAD>\r\n<LINK href=\"datasrc/style.css\" type=text/css rel=stylesheet>\r\n<body>\r\n");
      if (_jspx_meth_mytag_head_0(_jspx_page_context))
        return;
      out.write("\r\n<!-- 在这里开始加入动态内容 -->\r\n<TABLE cellSpacing=0 cellPadding=0 width=776 align=center background=datasrc/centerbg.gif border=0>\r\n  <TBODY>\r\n    <TR>\r\n      <td align=\"center\">\r\n\r\n\t\t  <form action=\"alterUserPassword.do\" method=\"post\" name=\"alterUserPswdFrom\" onsubmit=\"return alterNewUserAction()\">\r\n            <table width=\"100%\">\r\n              <tr>\r\n                <td align=\"right\">&nbsp;</td>\r\n                <td><span class=\"STYLE9\">修改用户密码</span></td>\r\n              </tr>\r\n              <tr>\r\n                <td align=\"right\"><span class=\"STYLE12\">用户名</span></td>\r\n                <td><label>\r\n                  <input name=\"userName\" type=\"text\" id=\"userName\">\r\n                  <span class=\"STYLE1\">*</span>\r\n                </label></td>\r\n              </tr>\r\n              <tr>\r\n                <td align=\"right\"><span class=\"STYLE12\">原密码</span></td>\r\n                <td><label>\r\n                  <input name=\"userPassword\" type=\"password\" id=\"userPassword\">\r\n                  <span class=\"STYLE1\">                *</span></label></td>\r\n");
      out.write("              </tr>\r\n              <tr>\r\n                <td align=\"right\"><span class=\"STYLE12\">新密码</span></td>\r\n                <td><label>\r\n                  <input name=\"newPasswordOne\" type=\"password\" id=\"newPasswordOne\">\r\n                  <span class=\"STYLE1\">                *</span></label></td>\r\n              </tr>\r\n              <tr>\r\n                <td align=\"right\"><span class=\"STYLE12\">再输入一次新密码:</span></td>\r\n                <td><label>\r\n                  <input name=\"newPasswordTowe\" type=\"password\" id=\"newPasswordTowe\">\r\n                  <span class=\"STYLE1\">                *</span></label></td>\r\n              </tr>\r\n              <tr>\r\n                <td align=\"right\">&nbsp;</td>\r\n                <td><label>\r\n                  <input type=\"submit\" value=\"提交\">\r\n                </label>\r\n                  <label>\r\n                  <input type=\"reset\" value=\"重置\">\r\n                  </label></td>\r\n              </tr>\r\n              <tr>\r\n                <td colspan=\"2\" align=\"center\"><font size=\"4\" color=\"#ff0000\"><b>");
      out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${FromAlterUserPasswordActionMessage}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
      out.write("</b></font></td>\r\n                </tr>\r\n            </table>\r\n\t\t  </form>\r\n\r\n      </TD>\r\n    </TR>\r\n    </TBODY>\r\n</TABLE>\r\n<!-- 在这里结束加入动态内容 -->\r\n");
      if (_jspx_meth_mytag_cauda_0(_jspx_page_context))
        return;
      out.write("\r\n</BODY>\r\n</HTML>\r\n");
    } catch (Throwable t) {
      if (!(t instanceof SkipPageException)){
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0)
          out.clearBuffer();
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
      }
    } finally {
      if (_jspxFactory != null) _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }

  private boolean _jspx_meth_mytag_head_0(PageContext _jspx_page_context)
          throws Throwable {
    PageContext pageContext = _jspx_page_context;
    JspWriter out = _jspx_page_context.getOut();
    //  mytag:head
    org.apache.jsp.tag.web.head_tag _jspx_th_mytag_head_0 = new org.apache.jsp.tag.web.head_tag();
    _jspx_th_mytag_head_0.setJspContext(_jspx_page_context);
    _jspx_th_mytag_head_0.doTag();
    return false;
  }

  private boolean _jspx_meth_mytag_cauda_0(PageContext _jspx_page_context)
          throws Throwable {
    PageContext pageContext = _jspx_page_context;
    JspWriter out = _jspx_page_context.getOut();
    //  mytag:cauda
    org.apache.jsp.tag.web.cauda_tag _jspx_th_mytag_cauda_0 = new org.apache.jsp.tag.web.cauda_tag();
    _jspx_th_mytag_cauda_0.setJspContext(_jspx_page_context);
    _jspx_th_mytag_cauda_0.doTag();
    return false;
  }
}

⌨️ 快捷键说明

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