📄 updatepassword_jsp.java
字号:
package org.apache.jsp.updatePassword;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import java.util.*;
public final class updatePassword_jsp extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent {
private static java.util.Vector _jspx_dependants;
private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_c_if_test;
public java.util.List getDependants() {
return _jspx_dependants;
}
public void _jspInit() {
_jspx_tagPool_c_if_test = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
}
public void _jspDestroy() {
_jspx_tagPool_c_if_test.release();
}
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("\r\n");
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
out.write("\r\n");
out.write("\r\n");
out.write("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\r\n");
out.write("<html>\r\n");
out.write("<head>\r\n");
out.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n");
out.write("<link href=\"../css/style1.css\" rel=\"stylesheet\">\r\n");
out.write("<link href=\"");
out.print(request.getContextPath());
out.write("/css/style_2.css\" rel=\"stylesheet\">\r\n");
out.write("<title>修改密码</title>\r\n");
out.write("<style type=\"text/css\">\r\n");
out.write("<!--\r\n");
out.write("body,td,th {\r\n");
out.write("\tcolor: #000000;\r\n");
out.write("}\r\n");
out.write("body {\r\n");
out.write("\tbackground-color:#639ACE;\r\n");
out.write("}\r\n");
out.write("-->\r\n");
out.write("</style>\r\n");
out.write("<script language=\"javascript\">\r\n");
out.write("<!--\r\n");
out.write("\tfunction check(){\r\n");
out.write("\tvar password1 = form.newpassword.value;\r\n");
out.write("\tvar password2 = form.password2.value;\r\n");
out.write("\t\tif(password1 == \"\"){\r\n");
out.write("\t\t\talert(\"请输入新密码\");\r\n");
out.write("\t\t\treturn false;\r\n");
out.write("\t\t\tform.password1.focus();\r\n");
out.write("\t\t\thistory.back();\r\n");
out.write("\t\t}\r\n");
out.write("\t\tif(password2 == \"\"){\r\n");
out.write("\t\t\talert(\"确认新密码\");\r\n");
out.write("\t\t\treturn false;\r\n");
out.write("\t\t\tform.password2.focus();\r\n");
out.write("\t\t\thistory.back();\r\n");
out.write("\t\t}\r\n");
out.write("\t\tif(password1 != password2){\r\n");
out.write("\t\t\talert(\"输入的新密码与确认密码不同\");\r\n");
out.write("\t\t\treturn false;\r\n");
out.write("\t\t\tform.password1.focus();\r\n");
out.write("\t\t\thistory.back();\r\n");
out.write("\t\t}\r\n");
out.write("\t}\r\n");
out.write("-->\r\n");
out.write("</script></head>\r\n");
out.write("<body>\r\n");
// c:if
org.apache.taglibs.standard.tag.rt.core.IfTag _jspx_th_c_if_0 = (org.apache.taglibs.standard.tag.rt.core.IfTag) _jspx_tagPool_c_if_test.get(org.apache.taglibs.standard.tag.rt.core.IfTag.class);
_jspx_th_c_if_0.setPageContext(_jspx_page_context);
_jspx_th_c_if_0.setParent(null);
_jspx_th_c_if_0.setTest(((java.lang.Boolean) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${!empty updatepassword}", java.lang.Boolean.class, (PageContext)_jspx_page_context, null, false)).booleanValue());
int _jspx_eval_c_if_0 = _jspx_th_c_if_0.doStartTag();
if (_jspx_eval_c_if_0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
do {
out.write("\r\n");
out.write("\t ");
out
.println("<script language='javascript'>alert('修改密码成功!!!');this.close();</script>");
session.removeAttribute("updatepassword");
out.write('\r');
out.write('\n');
int evalDoAfterBody = _jspx_th_c_if_0.doAfterBody();
if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
break;
} while (true);
}
if (_jspx_th_c_if_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
return;
_jspx_tagPool_c_if_test.reuse(_jspx_th_c_if_0);
out.write("\r\n");
out.write("<form action=\"");
out.print(path);
out.write("/servlet/UpdatePasswordServlet\" method=\"post\" name=\"form\">\r\n");
out.write("<table width=\"95%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\">\r\n");
out.write(" <tr align=\"center\">\r\n");
out.write(" <th width=\"30%\" height=\"25\" scope=\"col\"> </th>\r\n");
out.write(" <th width=\"20%\" height=\"25\" scope=\"col\"> </th>\r\n");
out.write(" <th height=\"25\" scope=\"col\"> </th>\r\n");
out.write(" <th width=\"30%\" height=\"25\" scope=\"col\"> </th>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr align=\"center\">\r\n");
out.write(" <td height=\"25\"> </td>\r\n");
out.write(" <td height=\"25\">用 户</td>\r\n");
out.write(" <td height=\"25\">");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${username}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
out.write("</td>\r\n");
out.write(" <td height=\"25\"> </td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr align=\"center\">\r\n");
out.write(" <td height=\"25\"> </td>\r\n");
out.write(" <td height=\"25\">新密码 </td>\r\n");
out.write(" <td width=\"20%\" height=\"25\">\r\n");
out.write(" <input type=\"password\" name=\"newpassword\" size=\"15\"> \r\n");
out.write(" <input type=\"hidden\" name=\"personId\" value=\"");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${personId }", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
out.write("\"> \r\n");
out.write(" </td>\r\n");
out.write(" <td height=\"25\"> </td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr align=\"center\">\r\n");
out.write(" <td height=\"25\"> </td>\r\n");
out.write(" <td height=\"25\" width=\"25%\">确认密码</td>\r\n");
out.write(" <td width=\"20%\" height=\"25\">\r\n");
out.write(" <input type=\"password\" name=\"password2\" size=\"15\"> \r\n");
out.write(" </td>\r\n");
out.write(" <td height=\"25\"> </td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr align=\"center\">\r\n");
out.write(" <td height=\"25\"> </td>\r\n");
out.write(" <td height=\"25\" align=\"right\"><input type=\"submit\" name=\"submit\" value=\"提 交\" onClick=\"return check()\"></td>\r\n");
out.write(" <td height=\"25\" align=\"right\"><input type=\"reset\" name=\"reset\" value=\"清 空\"></td>\r\n");
out.write(" <td height=\"25\"> </td>\r\n");
out.write(" </tr>\r\n");
out.write("</table>\r\n");
out.write("</form>\r\n");
out.write("</body>\r\n");
out.write("</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);
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -