📄 useredit_0002ejsp_jsp.java
字号:
package dept;
import java.util.*;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import org.apache.jasper.runtime.*;
public class userEdit_0002ejsp_jsp extends HttpJspBase {
// begin [file="/dept/userEdit.jsp";from=(2,0);to=(2,76)]
// end
// begin [file="/dept/userEdit.jsp";from=(8,0);to=(8,76)]
// end
static {
}
public userEdit_0002ejsp_jsp( ) {
}
private static boolean _jspx_inited = false;
public final void _jspx_init() throws org.apache.jasper.runtime.JspException {
}
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;
String _value = null;
try {
if (_jspx_inited == false) {
synchronized (this) {
if (_jspx_inited == false) {
_jspx_init();
_jspx_inited = true;
}
}
}
_jspxFactory = JspFactory.getDefaultFactory();
response.setContentType("text/html;charset=gb2312");
pageContext = _jspxFactory.getPageContext(this, request, response,
"", true, 8192, true);
application = pageContext.getServletContext();
config = pageContext.getServletConfig();
session = pageContext.getSession();
out = pageContext.getOut();
// HTML // begin [file="/dept/userEdit.jsp";from=(0,49);to=(1,0)]
out.write("\r\n");
// end
// HTML // begin [file="/dept/userEdit.jsp";from=(1,32);to=(2,0)]
out.write("\r\n");
// end
// begin [file="/dept/userEdit.jsp";from=(2,0);to=(2,76)]
com.officelog.OffLogBean offLogBean = null;
boolean _jspx_specialoffLogBean = false;
synchronized (pageContext) {
offLogBean= (com.officelog.OffLogBean)
pageContext.getAttribute("offLogBean",PageContext.PAGE_SCOPE);
if ( offLogBean == null ) {
_jspx_specialoffLogBean = true;
try {
offLogBean = (com.officelog.OffLogBean) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "com.officelog.OffLogBean");
} catch (ClassNotFoundException exc) {
throw new InstantiationException(exc.getMessage());
} catch (Exception exc) {
throw new ServletException (" Cannot create bean of class "+"com.officelog.OffLogBean", exc);
}
pageContext.setAttribute("offLogBean", offLogBean, PageContext.PAGE_SCOPE);
}
}
if(_jspx_specialoffLogBean == true) {
// end
// begin [file="/dept/userEdit.jsp";from=(2,0);to=(2,76)]
}
// end
// HTML // begin [file="/dept/userEdit.jsp";from=(2,76);to=(3,0)]
out.write("\r\n");
// end
// begin [file="/dept/userEdit.jsp";from=(3,2);to=(7,0)]
boolean isadmin=offLogBean.userEdit(request,response);
if(!isadmin)
response.sendRedirect("default.html");
// end
// HTML // begin [file="/dept/userEdit.jsp";from=(7,2);to=(8,0)]
out.write("\r\n");
// end
// begin [file="/dept/userEdit.jsp";from=(8,0);to=(8,76)]
java.util.Vector viewContent = null;
boolean _jspx_specialviewContent = false;
synchronized (request) {
viewContent= (java.util.Vector)
pageContext.getAttribute("viewContent",PageContext.REQUEST_SCOPE);
if ( viewContent == null ) {
_jspx_specialviewContent = true;
try {
viewContent = (java.util.Vector) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "java.util.Vector");
} catch (ClassNotFoundException exc) {
throw new InstantiationException(exc.getMessage());
} catch (Exception exc) {
throw new ServletException (" Cannot create bean of class "+"java.util.Vector", exc);
}
pageContext.setAttribute("viewContent", viewContent, PageContext.REQUEST_SCOPE);
}
}
if(_jspx_specialviewContent == true) {
// end
// begin [file="/dept/userEdit.jsp";from=(8,0);to=(8,76)]
}
// end
// HTML // begin [file="/dept/userEdit.jsp";from=(8,76);to=(9,0)]
out.write(" \r\n");
// end
// begin [file="/dept/userEdit.jsp";from=(9,2);to=(16,0)]
String id=(String)viewContent.elementAt(0);
String username=(String)viewContent.elementAt(1);
String password=(String)viewContent.elementAt(2);
String truename=(String)viewContent.elementAt(3);
String strFlag=(String)viewContent.elementAt(4);
int flag=Integer.parseInt(strFlag);
// end
// HTML // begin [file="/dept/userEdit.jsp";from=(16,2);to=(47,39)]
out.write("\r\n<html>\r\n<head>\r\n<title></title>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n<link href=\"style.css\" rel=\"stylesheet\" type=\"text/css\">\r\n<script language=javascript>\r\nfunction check()\r\n{\r\n if(document.form1.truename.value==\"\")\r\n {\r\n alert(\"鐢ㄦ埛鍚嶄笉鑳戒负绌篭");\r\n return false;\r\n }\r\n if(document.form1.username.value==\"\")\r\n {\r\n alert(\"甯愬彿涓嶈兘涓虹┖\");\r\n return false;\r\n }\r\n if(document.form1.password.value==\"\")\r\n {\r\n alert(\"瀵嗙爜涓嶈兘涓虹┖\");\r\n return false;\r\n }\r\n}\r\n</script>\r\n</head>\r\n<body bgcolor=\"#FFFFFF\" leftmargin=\"0\" topmargin=\"0\">\r\n<div align=\"center\">\r\n <p> </p>\r\n <form method=\"post\" action=\"/OfficeLog/dept/userUpdate.jsp\" name=\"form1\" onsubmit=\"javascript:return check();\">\r\n <input type=\"hidden\" name=\"id\" value=");
// end
// begin [file="/dept/userEdit.jsp";from=(47,42);to=(47,44)]
out.print(id);
// end
// HTML // begin [file="/dept/userEdit.jsp";from=(47,46);to=(57,54)]
out.write(">\r\n <table width=\"40%\" border=\"1\" cellspacing=\"0\" cellpadding=\"0\" bordercolorlight=\"#000000\" bordercolordark=\"#FFFFFF\">\r\n <tr bgcolor=\"#CCCCCC\"> \r\n <td height=\"25\"> \r\n <div align=\"center\"><font size=\"2\">缂栬緫鍛樺伐淇℃伅</font></div>\r\n </td>\r\n </tr>\r\n <tr> \r\n <td height=\"30\"> \r\n <div align=\"center\"><font size=\"2\">鐪熷疄濮撳悕銆
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -