updateemployeeinfo_0002ejsp_jsp.java
来自「100多M的J2EE培训内容」· Java 代码 · 共 82 行
JAVA
82 行
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import org.apache.jasper.runtime.*;
public class UpdateEmployeeInfo_0002ejsp_jsp extends HttpJspBase {
private static java.util.Vector _jspx_includes;
public java.util.List getIncludes() {
return _jspx_includes;
}
public void _jspService(HttpServletRequest request, HttpServletResponse response)
throws java.io.IOException, ServletException {
JspFactory _jspxFactory = null;
javax.servlet.jsp.PageContext pageContext = null;
HttpSession session = null;
ServletContext application = null;
ServletConfig config = null;
JspWriter out = null;
Object page = this;
JspWriter _jspx_out = null;
try {
_jspxFactory = JspFactory.getDefaultFactory();
response.setContentType("text/html; charset=GBK");
pageContext = _jspxFactory.getPageContext(this, request, response,
null, true, 8192, true);
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>");
out.write("<TITLE>Updating Employee Information");
out.write("</TITLE>");
out.write("</HEAD>\r\n");
out.write("<BODY>\r\n");
humanresource.EmployeeInfoBean empInfo = null;
synchronized (request) {
empInfo = (humanresource.EmployeeInfoBean) pageContext.getAttribute("empInfo", PageContext.REQUEST_SCOPE);
if (empInfo == null){
try {
empInfo = (humanresource.EmployeeInfoBean) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "humanresource.EmployeeInfoBean");
} catch (ClassNotFoundException exc) {
throw new InstantiationException(exc.getMessage());
} catch (Exception exc) {
throw new ServletException("Cannot create bean of class " + "humanresource.EmployeeInfoBean", exc);
}
pageContext.setAttribute("empInfo", empInfo, PageContext.REQUEST_SCOPE);
}
}
out.write("\r\n\r\n");
JspRuntimeLibrary.introspect(pageContext.findAttribute("empInfo"), request);
out.write("\r\n\r\n");
empInfo.updateDatabase();
out.write("\r\n\r\n");
if (true) {
pageContext.forward("PresentChangeOfEmployeeData.jsp");
return;
}
out.write("\r\n");
out.write("</BODY>\r\n");
out.write("</HTML>");
} catch (Throwable t) {
out = _jspx_out;
if (out != null && out.getBufferSize() != 0)
out.clearBuffer();
if (pageContext != null) pageContext.handlePageException(t);
} finally {
if (_jspxFactory != null) _jspxFactory.releasePageContext(pageContext);
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?