?? updatepassword_jsp.java
字號(hào):
package org.apache.jsp.gc.jsp;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import java.sql.*;
import java.sql.*;
import java.util.*;
import javax.servlet.*;
import javax.servlet.http.*;
import java.text.*;
import java.math.*;
import com.gc.action.User;
import com.gd.mvc.io.InfoInAndOut;
import com.gd.mvc.io.impl.GdInfoInAndOut;
public final class updatePassword_jsp extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent {
public static final String _AppId = "updatePassword";
private static java.util.List _jspx_dependants;
private javax.el.ExpressionFactory _el_expressionfactory;
private org.apache.AnnotationProcessor _jsp_annotationprocessor;
public Object getDependants() {
return _jspx_dependants;
}
public void _jspInit() {
_el_expressionfactory = JspFactory.getDefaultFactory().getJspApplicationContext(getServletConfig().getServletContext()).getExpressionFactory();
_jsp_annotationprocessor = (org.apache.AnnotationProcessor) getServletConfig().getServletContext().getAttribute(org.apache.AnnotationProcessor.class.getName());
}
public void _jspDestroy() {
}
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,
"", 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");
out.write('\r');
out.write('\n');
InfoInAndOut infoOut = (request.getAttribute("infoOut") == null) ? new GdInfoInAndOut() : (InfoInAndOut)request.getAttribute("infoOut");
String msg = infoOut.get("msg") == null ? "" : (String)infoOut.get("msg");
User user = infoOut.get("user") == null ? new User() : (User)infoOut.get("user");
out.write("\r\n");
out.write("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\"\r\n");
out.write("\"http://www.w3.org/TR/html4/loose.dtd\">\r\n");
out.write("<html>\r\n");
out.write("<head>\r\n");
out.write("<title>采用新的框架實(shí)現(xiàn)用戶登錄驗(yàn)證</title>\r\n");
out.write("<style type=\"text/css\">\r\n");
out.write("<!--\r\n");
out.write("body {\r\n");
out.write("\tbackground-color: #FFFFFD;\r\n");
out.write("\tfont-family: Verdana, \"宋體\";\r\n");
out.write("\tfont-size: 12px;\r\n");
out.write("\tfont-style: normal;\r\n");
out.write("}\r\n");
out.write("-->\r\n");
out.write("</style>\r\n");
out.write("<script language=Javascript>\r\n");
out.write("function submit(target, action) {\r\n");
out.write(" form1.target = target; \r\n");
out.write(" form1.action.value = action;\r\n");
out.write(" form1.submit();\r\n");
out.write("}\r\n");
out.write("function openWin(name, url, width, height) {\r\n");
out.write("\tvar screenWidth = screen.width;\r\n");
out.write("\tvar screenHeight = screen.height;\r\n");
out.write("\tvar w;\r\n");
out.write(" \tw = window.open(url, name, \"width=\"+width+\",height=\"+height+\",menubar=no,resizable=yes,toolbar=no,directories=no,location=no,scrollbars=yes,status=yes,copyhistory=0\");\r\n");
out.write("\tw.moveTo((screenWidth-width)/2, (screenHeight-height)/2);\r\n");
out.write("\tw.focus();\r\n");
out.write("}\r\n");
out.write("function goExit() {\r\n");
out.write("\twindow.close();\r\n");
out.write("}\r\n");
out.write("function check(action) {\r\n");
out.write("\tsubmit('");
out.print("updatePassword_"+session.getId());
out.write("',action);\r\n");
out.write("}\r\n");
out.write("</script>\r\n");
out.write("</head>\r\n");
out.write("<body leftmargin=\"0\" topmargin=\"0\">\r\n");
out.write("<form name=\"form1\" action=\"/myApp/gc/updatePassword.do\" method=\"post\">\r\n");
out.write("<H3><font color='red'>");
out.print(msg);
out.write("</font><H3>\r\n");
out.write("用戶名:<input type=\"text\" name=\"username_user\" value=\"");
out.print(user.getUsername());
out.write("\"><br>\r\n");
out.write("密碼: <input type=\"password\" name=\"password_user\" value=\"");
out.print(user.getPassword());
out.write("\"><br>\r\n");
out.write("<input type=\"button\" name=\"button\" value=\"修改\" onClick=\"return check('update')\">\r\n");
out.write("<input type=\"button\" name=\"button\" value=\"刪除\" onClick=\"return check('delete')\">\r\n");
out.write("\t<input type=\"hidden\" name=\"action\" value=\"\">\r\n");
out.write("</form>\r\n");
out.write("<script language=Javascript>\r\n");
out.write(" window.name = \"");
out.print("updatePassword_"+session.getId());
out.write("\"; \r\n");
out.write("</script>\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)
try { out.clearBuffer(); } catch (java.io.IOException e) {}
if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
}
} finally {
if (_jspxFactory != null) _jspxFactory.releasePageContext(_jspx_page_context);
}
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -