index_jsp.java
上传用户:dinglihq
上传日期:2013-02-04
资源大小:99958k
文件大小:8k
源码类别:

Java编程

开发平台:

Java

  1. package org.apache.jsp;
  2. import javax.servlet.*;
  3. import javax.servlet.http.*;
  4. import javax.servlet.jsp.*;
  5. import org.apache.jasper.runtime.*;
  6. public class index_jsp extends HttpJspBase {
  7.   private static java.util.Vector _jspx_includes;
  8.   private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_html_form_method_action;
  9.   private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_html_text_property;
  10.   private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_html_submit_value_property;
  11.   private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_html_reset_value;
  12.   public index_jsp() {
  13.     _jspx_tagPool_html_form_method_action = new org.apache.jasper.runtime.TagHandlerPool();
  14.     _jspx_tagPool_html_text_property = new org.apache.jasper.runtime.TagHandlerPool();
  15.     _jspx_tagPool_html_submit_value_property = new org.apache.jasper.runtime.TagHandlerPool();
  16.     _jspx_tagPool_html_reset_value = new org.apache.jasper.runtime.TagHandlerPool();
  17.   }
  18.   public java.util.List getIncludes() {
  19.     return _jspx_includes;
  20.   }
  21.   public void _jspDestroy() {
  22.     _jspx_tagPool_html_form_method_action.release();
  23.     _jspx_tagPool_html_text_property.release();
  24.     _jspx_tagPool_html_submit_value_property.release();
  25.     _jspx_tagPool_html_reset_value.release();
  26.   }
  27.   public void _jspService(HttpServletRequest request, HttpServletResponse response)
  28.         throws java.io.IOException, ServletException {
  29.     JspFactory _jspxFactory = null;
  30.     javax.servlet.jsp.PageContext pageContext = null;
  31.     HttpSession session = null;
  32.     ServletContext application = null;
  33.     ServletConfig config = null;
  34.     JspWriter out = null;
  35.     Object page = this;
  36.     JspWriter _jspx_out = null;
  37.     try {
  38.       _jspxFactory = JspFactory.getDefaultFactory();
  39.       response.setContentType("text/html; charset=GBK");
  40.       pageContext = _jspxFactory.getPageContext(this, request, response,
  41.        null, true, 8192, true);
  42.       application = pageContext.getServletContext();
  43.       config = pageContext.getServletConfig();
  44.       session = pageContext.getSession();
  45.       out = pageContext.getOut();
  46.       _jspx_out = out;
  47.       out.write("rn");
  48.       out.write("rn");
  49.       out.write("rn");
  50.       out.write("rn");
  51.       out.write("rn");
  52.       out.write("<head>rn");
  53.       out.write("<title>rnlog_okrn");
  54.       out.write("</title>rn");
  55.       out.write("</head>rn");
  56.       out.write("<body>rn");
  57.       out.write("<h1>simple jsp based on struts ");
  58.       out.write("</h1>rn");
  59.       out.write("<p>rn");
  60.       if (_jspx_meth_html_form_0(pageContext))
  61.         return;
  62.       out.write("rn");
  63.       out.write("</body>rn");
  64.       out.write("</html:html>");
  65.     } catch (Throwable t) {
  66.       out = _jspx_out;
  67.       if (out != null && out.getBufferSize() != 0)
  68.         out.clearBuffer();
  69.       if (pageContext != null) pageContext.handlePageException(t);
  70.     } finally {
  71.       if (_jspxFactory != null) _jspxFactory.releasePageContext(pageContext);
  72.     }
  73.   }
  74.   private boolean _jspx_meth_html_form_0(javax.servlet.jsp.PageContext pageContext)
  75.           throws Throwable {
  76.     JspWriter out = pageContext.getOut();
  77.     /* ----  html:form ---- */
  78.     org.apache.struts.taglib.html.FormTag _jspx_th_html_form_0 = (org.apache.struts.taglib.html.FormTag) _jspx_tagPool_html_form_method_action.get(org.apache.struts.taglib.html.FormTag.class);
  79.     _jspx_th_html_form_0.setPageContext(pageContext);
  80.     _jspx_th_html_form_0.setParent(null);
  81.     _jspx_th_html_form_0.setAction("/logonAction");
  82.     _jspx_th_html_form_0.setMethod("POST");
  83.     int _jspx_eval_html_form_0 = _jspx_th_html_form_0.doStartTag();
  84.     if (_jspx_eval_html_form_0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
  85.       do {
  86.         out.write("rnrn");
  87.         out.write("<br>rn");
  88.         if (_jspx_meth_html_text_0(_jspx_th_html_form_0, pageContext))
  89.           return true;
  90.         out.write("rn");
  91.         if (_jspx_meth_html_text_1(_jspx_th_html_form_0, pageContext))
  92.           return true;
  93.         out.write("rn");
  94.         out.write("<br>rn");
  95.         if (_jspx_meth_html_submit_0(_jspx_th_html_form_0, pageContext))
  96.           return true;
  97.         out.write("rn");
  98.         if (_jspx_meth_html_reset_0(_jspx_th_html_form_0, pageContext))
  99.           return true;
  100.         out.write("<br>rn");
  101.         int evalDoAfterBody = _jspx_th_html_form_0.doAfterBody();
  102.         if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
  103.           break;
  104.       } while (true);
  105.     }
  106.     if (_jspx_th_html_form_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
  107.       return true;
  108.     _jspx_tagPool_html_form_method_action.reuse(_jspx_th_html_form_0);
  109.     return false;
  110.   }
  111.   private boolean _jspx_meth_html_text_0(javax.servlet.jsp.tagext.Tag _jspx_th_html_form_0, javax.servlet.jsp.PageContext pageContext)
  112.           throws Throwable {
  113.     JspWriter out = pageContext.getOut();
  114.     /* ----  html:text ---- */
  115.     org.apache.struts.taglib.html.TextTag _jspx_th_html_text_0 = (org.apache.struts.taglib.html.TextTag) _jspx_tagPool_html_text_property.get(org.apache.struts.taglib.html.TextTag.class);
  116.     _jspx_th_html_text_0.setPageContext(pageContext);
  117.     _jspx_th_html_text_0.setParent(_jspx_th_html_form_0);
  118.     _jspx_th_html_text_0.setProperty("username");
  119.     int _jspx_eval_html_text_0 = _jspx_th_html_text_0.doStartTag();
  120.     if (_jspx_th_html_text_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
  121.       return true;
  122.     _jspx_tagPool_html_text_property.reuse(_jspx_th_html_text_0);
  123.     return false;
  124.   }
  125.   private boolean _jspx_meth_html_text_1(javax.servlet.jsp.tagext.Tag _jspx_th_html_form_0, javax.servlet.jsp.PageContext pageContext)
  126.           throws Throwable {
  127.     JspWriter out = pageContext.getOut();
  128.     /* ----  html:text ---- */
  129.     org.apache.struts.taglib.html.TextTag _jspx_th_html_text_1 = (org.apache.struts.taglib.html.TextTag) _jspx_tagPool_html_text_property.get(org.apache.struts.taglib.html.TextTag.class);
  130.     _jspx_th_html_text_1.setPageContext(pageContext);
  131.     _jspx_th_html_text_1.setParent(_jspx_th_html_form_0);
  132.     _jspx_th_html_text_1.setProperty("password");
  133.     int _jspx_eval_html_text_1 = _jspx_th_html_text_1.doStartTag();
  134.     if (_jspx_th_html_text_1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
  135.       return true;
  136.     _jspx_tagPool_html_text_property.reuse(_jspx_th_html_text_1);
  137.     return false;
  138.   }
  139.   private boolean _jspx_meth_html_submit_0(javax.servlet.jsp.tagext.Tag _jspx_th_html_form_0, javax.servlet.jsp.PageContext pageContext)
  140.           throws Throwable {
  141.     JspWriter out = pageContext.getOut();
  142.     /* ----  html:submit ---- */
  143.     org.apache.struts.taglib.html.SubmitTag _jspx_th_html_submit_0 = (org.apache.struts.taglib.html.SubmitTag) _jspx_tagPool_html_submit_value_property.get(org.apache.struts.taglib.html.SubmitTag.class);
  144.     _jspx_th_html_submit_0.setPageContext(pageContext);
  145.     _jspx_th_html_submit_0.setParent(_jspx_th_html_form_0);
  146.     _jspx_th_html_submit_0.setProperty("submit");
  147.     _jspx_th_html_submit_0.setValue("Submit");
  148.     int _jspx_eval_html_submit_0 = _jspx_th_html_submit_0.doStartTag();
  149.     if (_jspx_th_html_submit_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
  150.       return true;
  151.     _jspx_tagPool_html_submit_value_property.reuse(_jspx_th_html_submit_0);
  152.     return false;
  153.   }
  154.   private boolean _jspx_meth_html_reset_0(javax.servlet.jsp.tagext.Tag _jspx_th_html_form_0, javax.servlet.jsp.PageContext pageContext)
  155.           throws Throwable {
  156.     JspWriter out = pageContext.getOut();
  157.     /* ----  html:reset ---- */
  158.     org.apache.struts.taglib.html.ResetTag _jspx_th_html_reset_0 = (org.apache.struts.taglib.html.ResetTag) _jspx_tagPool_html_reset_value.get(org.apache.struts.taglib.html.ResetTag.class);
  159.     _jspx_th_html_reset_0.setPageContext(pageContext);
  160.     _jspx_th_html_reset_0.setParent(_jspx_th_html_form_0);
  161.     _jspx_th_html_reset_0.setValue("Reset");
  162.     int _jspx_eval_html_reset_0 = _jspx_th_html_reset_0.doStartTag();
  163.     if (_jspx_th_html_reset_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
  164.       return true;
  165.     _jspx_tagPool_html_reset_value.reuse(_jspx_th_html_reset_0);
  166.     return false;
  167.   }
  168. }