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

📄 updatepassword_jsp.java

📁 自己写的一个java购销系统
💻 JAVA
字号:
package org.apache.jsp.estore_005fjsp;

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

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

  private static java.util.List _jspx_dependants;

  public Object 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");
      out.write("<html>\r\n");
      out.write("  <head>\r\n");
      out.write("  <script>\r\n");
      out.write("    function checkUserNo(){\r\n");
      out.write("        var userNo = document.getElementById(\"userNo\");\r\n");
      out.write("        var value = userNo.value;\r\n");
      out.write("        if(value==null||value==\"\"){\r\n");
      out.write("            alert(\"UserNo is empty!\");\r\n");
      out.write("            userNoError.innerHTML=\"UserNo can not be empty!\";\r\n");
      out.write("        }\r\n");
      out.write("    }\r\n");
      out.write("    function checkOldPassword(){\r\n");
      out.write("        var password = document.getElementById(\"oldpassword\");\r\n");
      out.write("        var value = password.value;\r\n");
      out.write("        if(value===null||value==\"\"){\r\n");
      out.write("            alert(\"OldPassword is empty!\");\r\n");
      out.write("            oldpasswordError.innerHTML=\"OldPassword can not be empty!\";\r\n");
      out.write("        }\r\n");
      out.write("    }\r\n");
      out.write("    function checkNewPassword(){\r\n");
      out.write("        var password = document.getElementById(\"newpassword\");\r\n");
      out.write("        var value = password.value;\r\n");
      out.write("        if(value===null||value==\"\"){\r\n");
      out.write("            alert(\"NewPassword is empty!\");\r\n");
      out.write("            newpasswordError.innerHTML=\"NewPassword can not be empty!\";\r\n");
      out.write("        }\r\n");
      out.write("    }\r\n");
      out.write("    function checkFixPassword(){\r\n");
      out.write("        var newpassword = document.getElementById(\"newpassword\");\r\n");
      out.write("        var fixpassword = document.getElementById(\"fixpassword\");\r\n");
      out.write("        var newvalue = newpassword.value;\r\n");
      out.write("        var fixvalue = fixpassword.value;\r\n");
      out.write("        if(fixvalue===null||fixvalue==\"\"){\r\n");
      out.write("            alert(\"FixPassword is empty!\");\r\n");
      out.write("            fixpasswordError.innerHTML=\"FixPassword can not be empty!\";\r\n");
      out.write("        }else if(newvalue!=fixvalue){\r\n");
      out.write("            alert(\"The FixPassword must be equal with the NewPassword!\")\r\n");
      out.write("            fixpasswordError.innerHTML=\"The FixPassword must be equal with the NewPassword!\";\r\n");
      out.write("        }\r\n");
      out.write("    }\r\n");
      out.write("  </script>\r\n");
      out.write("  </head>\r\n");
      out.write("  <body>\r\n");
      out.write("  <br><h2 align=\"center\">Welcome to change your password!</h2>\r\n");
      out.write("  <hr align=\"center\" width=\"80%\">\r\n");
      out.write("  <form action=\"/OnlineBookStore/estore/inner/updatepasswordaction\" method=\"post\">\r\n");
      out.write("      <table align=\"center\">\r\n");
      out.write("          <tr>\r\n");
      out.write("              <td>UserNo:</td>\r\n");
      out.write("              <td><input type=\"text\" name=\"userNo\" id=\"userNo\" onblur=\"checkUserNo()\"><div id=\"userNoError\" style=\"color:red\"></div></td>\r\n");
      out.write("          </tr>\r\n");
      out.write("          <tr>\r\n");
      out.write("              <td>Old Password:</td>\r\n");
      out.write("              <td><input type=\"password\" name=\"oldPassword\" id=\"oldpassword\" onblur=\"checkOldPassword()\"><div id=\"oldpasswordError\" style=\"color:red\"></div></td>\r\n");
      out.write("          </tr>\r\n");
      out.write("          <tr>\r\n");
      out.write("              <td>New Password:</td>\r\n");
      out.write("              <td><input type=\"password\" name=\"newPassword\" id=\"newpassword\" onblur=\"checkNewPassword()\"><div id=\"newpasswordError\" style=\"color:red\"></div></td>\r\n");
      out.write("          </tr>\r\n");
      out.write("          <tr>\r\n");
      out.write("              <td>Fix Password:</td>\r\n");
      out.write("              <td><input type=\"password\" name=\"fixPassword\" id=\"fixpassword\" onblur=\"checkFixPassword()\"><div id=\"fixpasswordError\" style=\"color:red\"></div></td>\r\n");
      out.write("          </tr>\r\n");
      out.write("          <tr>\r\n");
      out.write("              <td align=\"right\"><INPUT TYPE=\"submit\" value=\"submit\"></td>\r\n");
      out.write("              <td align=\"center\"><INPUT TYPE=\"reset\" value=\"reset\"></td>\r\n");
      out.write("          </tr>\r\n");
      out.write("      </table>\r\n");
      out.write("  </form>\r\n");
      out.write("  <br>\r\n");
      out.write("  <hr align=\"center\" width=\"80%\">\r\n");
      out.write("  </body>\r\n");
      out.write("</html>");
    } 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);
    }
  }
}

⌨️ 快捷键说明

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