employeelist_jsp.java

来自「100多M的J2EE培训内容」· Java 代码 · 共 514 行 · 第 1/2 页

JAVA
514
字号
package org.apache.jsp;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import org.apache.jasper.runtime.*;

public class employeelist_jsp extends HttpJspBase {


  private static java.util.Vector _jspx_includes;

  private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_logic_notPresent_name;
  private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_logic_forward_name;
  private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_bean_message_key;
  private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_html_errors;
  private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_logic_iterate_scope_name_id;
  private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_bean_write_property_name;

  public employeelist_jsp() {
    _jspx_tagPool_logic_notPresent_name = new org.apache.jasper.runtime.TagHandlerPool();
    _jspx_tagPool_logic_forward_name = new org.apache.jasper.runtime.TagHandlerPool();
    _jspx_tagPool_bean_message_key = new org.apache.jasper.runtime.TagHandlerPool();
    _jspx_tagPool_html_errors = new org.apache.jasper.runtime.TagHandlerPool();
    _jspx_tagPool_logic_iterate_scope_name_id = new org.apache.jasper.runtime.TagHandlerPool();
    _jspx_tagPool_bean_write_property_name = new org.apache.jasper.runtime.TagHandlerPool();
  }

  public java.util.List getIncludes() {
    return _jspx_includes;
  }

  public void _jspDestroy() {
    _jspx_tagPool_logic_notPresent_name.release();
    _jspx_tagPool_logic_forward_name.release();
    _jspx_tagPool_bean_message_key.release();
    _jspx_tagPool_html_errors.release();
    _jspx_tagPool_logic_iterate_scope_name_id.release();
    _jspx_tagPool_bean_write_property_name.release();
  }

  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=ISO-8859-1");
      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("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      if (_jspx_meth_logic_notPresent_0(pageContext))
        return;
      out.write("\r\n");
      out.write("<html>\r\n");
      out.write("<head>\r\n");
      out.write("<title>");
      if (_jspx_meth_bean_message_0(pageContext))
        return;
      out.write("</title>\r\n");
      out.write("</head>\r\n");
      out.write("<body>\r\n");
      out.write("<table width=\"650\"\r\nborder=\"0\" cellspacing=\"0\" cellpadding=\"0\">\r\n");
      out.write("<tr>\r\n");
      out.write("<td colspan=\"7\">&nbsp;");
      out.write("</td>\r\n");
      out.write("</tr>\r\n");
      out.write("<tr bgcolor=\"#36566E\">\r\n");
      out.write("<td colspan=\"7\" height=\"68\" width=\"48%\">\r\n");
      out.write("<div align=\"left\">\r\n");
      out.write("<img src=\"images/hp_logo_wiley.gif\"\r\nwidth=\"220\" height=\"74\">\r\n");
      out.write("</div>\r\n");
      out.write("</td>\r\n");
      out.write("</tr>\r\n");
      out.write("<tr>\r\n");
      out.write("<td colspan=\"7\">&nbsp;");
      out.write("</td>\r\n");
      out.write("</tr>\r\n");
      out.write("</table>\r\n");
      if (_jspx_meth_html_errors_0(pageContext))
        return;
      out.write("\r\n");
      out.write("<table width=\"650\"\r\nborder=\"0\" cellspacing=\"0\" cellpadding=\"0\">\r\n");
      out.write("<tr align=\"left\">\r\n");
      out.write("<th>");
      if (_jspx_meth_bean_message_1(pageContext))
        return;
      out.write("</th>\r\n");
      out.write("<th>");
      if (_jspx_meth_bean_message_2(pageContext))
        return;
      out.write("</th>\r\n");
      out.write("<th>");
      if (_jspx_meth_bean_message_3(pageContext))
        return;
      out.write("</th>\r\n");
      out.write("<th>");
      if (_jspx_meth_bean_message_4(pageContext))
        return;
      out.write("</th>\r\n");
      out.write("<th>");
      if (_jspx_meth_bean_message_5(pageContext))
        return;
      out.write("</th>\r\n");
      out.write("<th>");
      if (_jspx_meth_bean_message_6(pageContext))
        return;
      out.write("</th>\r\n");
      out.write("</tr>\r\n");
      out.write("<!.. iterate over the results of the query ..>\r\n");
      /* ----  logic:iterate ---- */
      org.apache.struts.taglib.logic.IterateTag _jspx_th_logic_iterate_0 = (org.apache.struts.taglib.logic.IterateTag) _jspx_tagPool_logic_iterate_scope_name_id.get(org.apache.struts.taglib.logic.IterateTag.class);
      _jspx_th_logic_iterate_0.setPageContext(pageContext);
      _jspx_th_logic_iterate_0.setParent(null);
      _jspx_th_logic_iterate_0.setId("employee");
      _jspx_th_logic_iterate_0.setScope("request");
      _jspx_th_logic_iterate_0.setName("employees");
      int _jspx_eval_logic_iterate_0 = _jspx_th_logic_iterate_0.doStartTag();
      if (_jspx_eval_logic_iterate_0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
        java.lang.Object employee = null;
        if (_jspx_eval_logic_iterate_0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
          javax.servlet.jsp.tagext.BodyContent _bc = pageContext.pushBody();
          out = _bc;
          _jspx_th_logic_iterate_0.setBodyContent(_bc);
          _jspx_th_logic_iterate_0.doInitBody();
        }
        employee = (java.lang.Object) pageContext.findAttribute("employee");
        do {
          out.write("\r\n");
          out.write("<tr align=\"left\">\r\n");
          out.write("<td>\r\n");
          if (_jspx_meth_bean_write_0(_jspx_th_logic_iterate_0, pageContext))
            return;
          out.write("\r\n");
          out.write("</td>\r\n");
          out.write("<td>\r\n");
          if (_jspx_meth_bean_write_1(_jspx_th_logic_iterate_0, pageContext))
            return;
          out.write("\r\n");
          out.write("</td>\r\n");
          out.write("<td>\r\n");
          if (_jspx_meth_bean_write_2(_jspx_th_logic_iterate_0, pageContext))
            return;
          out.write("\r\n");
          out.write("</td>\r\n");
          out.write("<td>\r\n");
          if (_jspx_meth_bean_write_3(_jspx_th_logic_iterate_0, pageContext))
            return;
          out.write("\r\n");
          out.write("</td>\r\n");
          out.write("<td>\r\n");
          if (_jspx_meth_bean_write_4(_jspx_th_logic_iterate_0, pageContext))
            return;
          out.write("\r\n");
          out.write("</td>\r\n");
          out.write("<td>\r\n");
          if (_jspx_meth_bean_write_5(_jspx_th_logic_iterate_0, pageContext))
            return;
          out.write("\r\n");
          out.write("</td>\r\n");
          out.write("<td>\r\n");
          out.write("<a href=\"getEmployeeAction.do?username=");
          if (_jspx_meth_bean_write_6(_jspx_th_logic_iterate_0, pageContext))
            return;
          out.write("\">Edit");
          out.write("</a>\r\n");
          out.write("<a href=\"deleteEmployeeAction.do?username=");
          if (_jspx_meth_bean_write_7(_jspx_th_logic_iterate_0, pageContext))
            return;
          out.write("\">Delete");
          out.write("</a>\r\n");
          out.write("</td>\r\n");
          out.write("</tr>\r\n");
          int evalDoAfterBody = _jspx_th_logic_iterate_0.doAfterBody();
          employee = (java.lang.Object) pageContext.findAttribute("employee");
          if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
            break;
        } while (true);
        if (_jspx_eval_logic_iterate_0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE)
          out = pageContext.popBody();
      }
      if (_jspx_th_logic_iterate_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
        return;
      _jspx_tagPool_logic_iterate_scope_name_id.reuse(_jspx_th_logic_iterate_0);
      out.write("\r\n");
      out.write("<tr>\r\n");
      out.write("<td colspan=\"7\">\r\n");
      out.write("<hr>\r\n");
      out.write("</td>\r\n");
      out.write("</tr>\r\n");
      out.write("</table>\r\n");
      out.write("<font size=\".1\" face=\"arial\">\r\n");
      out.write("<a href=\"addemployee.jsp\">Add New Employee");
      out.write("</a>\r\n");
      out.write("</font>\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);
    }
  }

  private boolean _jspx_meth_logic_notPresent_0(javax.servlet.jsp.PageContext pageContext)
          throws Throwable {
    JspWriter out = pageContext.getOut();
    /* ----  logic:notPresent ---- */
    org.apache.struts.taglib.logic.NotPresentTag _jspx_th_logic_notPresent_0 = (org.apache.struts.taglib.logic.NotPresentTag) _jspx_tagPool_logic_notPresent_name.get(org.apache.struts.taglib.logic.NotPresentTag.class);
    _jspx_th_logic_notPresent_0.setPageContext(pageContext);
    _jspx_th_logic_notPresent_0.setParent(null);
    _jspx_th_logic_notPresent_0.setName("USER");
    int _jspx_eval_logic_notPresent_0 = _jspx_th_logic_notPresent_0.doStartTag();
    if (_jspx_eval_logic_notPresent_0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
      do {
        out.write("\r\n");
        if (_jspx_meth_logic_forward_0(_jspx_th_logic_notPresent_0, pageContext))
          return true;
        out.write("\r\n");
        int evalDoAfterBody = _jspx_th_logic_notPresent_0.doAfterBody();
        if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
          break;
      } while (true);
    }
    if (_jspx_th_logic_notPresent_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
      return true;
    _jspx_tagPool_logic_notPresent_name.reuse(_jspx_th_logic_notPresent_0);
    return false;
  }

  private boolean _jspx_meth_logic_forward_0(javax.servlet.jsp.tagext.Tag _jspx_th_logic_notPresent_0, javax.servlet.jsp.PageContext pageContext)
          throws Throwable {
    JspWriter out = pageContext.getOut();
    /* ----  logic:forward ---- */
    org.apache.struts.taglib.logic.ForwardTag _jspx_th_logic_forward_0 = (org.apache.struts.taglib.logic.ForwardTag) _jspx_tagPool_logic_forward_name.get(org.apache.struts.taglib.logic.ForwardTag.class);
    _jspx_th_logic_forward_0.setPageContext(pageContext);

⌨️ 快捷键说明

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