index_0002ejsp_jsp.java
资源名称:某公司的java培训教材 [点击查看]
上传用户:dinglihq
上传日期:2013-02-04
资源大小:99958k
文件大小:8k
源码类别:
Java编程
开发平台:
Java
- import javax.servlet.*;
- import javax.servlet.http.*;
- import javax.servlet.jsp.*;
- import org.apache.jasper.runtime.*;
- public class index_0002ejsp_jsp extends HttpJspBase {
- private static java.util.Vector _jspx_includes;
- private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_html_form_method_action;
- private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_html_text_property;
- private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_html_submit_value_property;
- private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_html_reset_value;
- public index_0002ejsp_jsp() {
- _jspx_tagPool_html_form_method_action = new org.apache.jasper.runtime.TagHandlerPool();
- _jspx_tagPool_html_text_property = new org.apache.jasper.runtime.TagHandlerPool();
- _jspx_tagPool_html_submit_value_property = new org.apache.jasper.runtime.TagHandlerPool();
- _jspx_tagPool_html_reset_value = new org.apache.jasper.runtime.TagHandlerPool();
- }
- public java.util.List getIncludes() {
- return _jspx_includes;
- }
- public void _jspDestroy() {
- _jspx_tagPool_html_form_method_action.release();
- _jspx_tagPool_html_text_property.release();
- _jspx_tagPool_html_submit_value_property.release();
- _jspx_tagPool_html_reset_value.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=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("rn");
- out.write("rn");
- out.write("rn");
- out.write("rn");
- out.write("rn");
- out.write("<head>rn");
- out.write("<title>rnlog_okrn");
- out.write("</title>rn");
- out.write("</head>rn");
- out.write("<body>rn");
- out.write("<h1>simple jsp based on struts ");
- out.write("</h1>rn");
- out.write("<p>rn");
- if (_jspx_meth_html_form_0(pageContext))
- return;
- out.write("rn");
- out.write("</body>rn");
- out.write("</html: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_html_form_0(javax.servlet.jsp.PageContext pageContext)
- throws Throwable {
- JspWriter out = pageContext.getOut();
- /* ---- html:form ---- */
- 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);
- _jspx_th_html_form_0.setPageContext(pageContext);
- _jspx_th_html_form_0.setParent(null);
- _jspx_th_html_form_0.setAction("/logonAction");
- _jspx_th_html_form_0.setMethod("POST");
- int _jspx_eval_html_form_0 = _jspx_th_html_form_0.doStartTag();
- if (_jspx_eval_html_form_0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
- do {
- out.write("rnrn");
- out.write("<br>rn");
- if (_jspx_meth_html_text_0(_jspx_th_html_form_0, pageContext))
- return true;
- out.write("rn");
- if (_jspx_meth_html_text_1(_jspx_th_html_form_0, pageContext))
- return true;
- out.write("rn");
- out.write("<br>rn");
- if (_jspx_meth_html_submit_0(_jspx_th_html_form_0, pageContext))
- return true;
- out.write("rn");
- if (_jspx_meth_html_reset_0(_jspx_th_html_form_0, pageContext))
- return true;
- out.write("<br>rn");
- int evalDoAfterBody = _jspx_th_html_form_0.doAfterBody();
- if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
- break;
- } while (true);
- }
- if (_jspx_th_html_form_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
- return true;
- _jspx_tagPool_html_form_method_action.reuse(_jspx_th_html_form_0);
- return false;
- }
- private boolean _jspx_meth_html_text_0(javax.servlet.jsp.tagext.Tag _jspx_th_html_form_0, javax.servlet.jsp.PageContext pageContext)
- throws Throwable {
- JspWriter out = pageContext.getOut();
- /* ---- html:text ---- */
- 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);
- _jspx_th_html_text_0.setPageContext(pageContext);
- _jspx_th_html_text_0.setParent(_jspx_th_html_form_0);
- _jspx_th_html_text_0.setProperty("username");
- int _jspx_eval_html_text_0 = _jspx_th_html_text_0.doStartTag();
- if (_jspx_th_html_text_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
- return true;
- _jspx_tagPool_html_text_property.reuse(_jspx_th_html_text_0);
- return false;
- }
- private boolean _jspx_meth_html_text_1(javax.servlet.jsp.tagext.Tag _jspx_th_html_form_0, javax.servlet.jsp.PageContext pageContext)
- throws Throwable {
- JspWriter out = pageContext.getOut();
- /* ---- html:text ---- */
- 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);
- _jspx_th_html_text_1.setPageContext(pageContext);
- _jspx_th_html_text_1.setParent(_jspx_th_html_form_0);
- _jspx_th_html_text_1.setProperty("password");
- int _jspx_eval_html_text_1 = _jspx_th_html_text_1.doStartTag();
- if (_jspx_th_html_text_1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
- return true;
- _jspx_tagPool_html_text_property.reuse(_jspx_th_html_text_1);
- return false;
- }
- private boolean _jspx_meth_html_submit_0(javax.servlet.jsp.tagext.Tag _jspx_th_html_form_0, javax.servlet.jsp.PageContext pageContext)
- throws Throwable {
- JspWriter out = pageContext.getOut();
- /* ---- html:submit ---- */
- 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);
- _jspx_th_html_submit_0.setPageContext(pageContext);
- _jspx_th_html_submit_0.setParent(_jspx_th_html_form_0);
- _jspx_th_html_submit_0.setProperty("submit");
- _jspx_th_html_submit_0.setValue("Submit");
- int _jspx_eval_html_submit_0 = _jspx_th_html_submit_0.doStartTag();
- if (_jspx_th_html_submit_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
- return true;
- _jspx_tagPool_html_submit_value_property.reuse(_jspx_th_html_submit_0);
- return false;
- }
- private boolean _jspx_meth_html_reset_0(javax.servlet.jsp.tagext.Tag _jspx_th_html_form_0, javax.servlet.jsp.PageContext pageContext)
- throws Throwable {
- JspWriter out = pageContext.getOut();
- /* ---- html:reset ---- */
- 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);
- _jspx_th_html_reset_0.setPageContext(pageContext);
- _jspx_th_html_reset_0.setParent(_jspx_th_html_form_0);
- _jspx_th_html_reset_0.setValue("Reset");
- int _jspx_eval_html_reset_0 = _jspx_th_html_reset_0.doStartTag();
- if (_jspx_th_html_reset_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
- return true;
- _jspx_tagPool_html_reset_value.reuse(_jspx_th_html_reset_0);
- return false;
- }
- }