DemoStructJsp2_0002ejsp_jsp.java
资源名称:某公司的java培训教材 [点击查看]
上传用户:dinglihq
上传日期:2013-02-04
资源大小:99958k
文件大小:16k
源码类别:
Java编程
开发平台:
Java
- import javax.servlet.*;
- import javax.servlet.http.*;
- import javax.servlet.jsp.*;
- import org.apache.jasper.runtime.*;
- public class DemoStructJsp2_0002ejsp_jsp extends HttpJspBase {
- static {
- }
- public DemoStructJsp2_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=GBK");
- pageContext = _jspxFactory.getPageContext(this, request, response,
- "", true, 8192, true);
- application = pageContext.getServletContext();
- config = pageContext.getServletConfig();
- session = pageContext.getSession();
- out = pageContext.getOut();
- // HTML // begin [file="/DemoStructJsp2.jsp";from=(0,60);to=(1,0)]
- out.write("n");
- // end
- // HTML // begin [file="/DemoStructJsp2.jsp";from=(1,66);to=(2,0)]
- out.write("n");
- // end
- // HTML // begin [file="/DemoStructJsp2.jsp";from=(2,58);to=(3,0)]
- out.write("n");
- // end
- // HTML // begin [file="/DemoStructJsp2.jsp";from=(3,58);to=(4,0)]
- out.write("n");
- // end
- // HTML // begin [file="/DemoStructJsp2.jsp";from=(4,48);to=(5,0)]
- out.write("n");
- // end
- // begin [file="/DemoStructJsp2.jsp";from=(5,0);to=(5,11)]
- /* ---- html:html ---- */
- org.apache.struts.taglib.html.HtmlTag _jspx_th_html_html_0 = new org.apache.struts.taglib.html.HtmlTag();
- _jspx_th_html_html_0.setPageContext(pageContext);
- _jspx_th_html_html_0.setParent(null);
- try {
- int _jspx_eval_html_html_0 = _jspx_th_html_html_0.doStartTag();
- if (_jspx_eval_html_html_0 == javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_BUFFERED)
- throw new JspTagException("Since tag handler class org.apache.struts.taglib.html.HtmlTag does not implement BodyTag, it can't return BodyTag.EVAL_BODY_TAG");
- if (_jspx_eval_html_html_0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
- do {
- // end
- // HTML // begin [file="/DemoStructJsp2.jsp";from=(5,11);to=(14,0)]
- out.write("n<head>n<title>nDemoStructJsp2n</title>n</head>n<body>n<h1>JBuilder Generated Struts JSP for ActionForm demostrcuts.DemoActionForm</h1>n<p>n");
- // end
- // begin [file="/DemoStructJsp2.jsp";from=(14,0);to=(14,55)]
- /* ---- html:form ---- */
- org.apache.struts.taglib.html.FormTag _jspx_th_html_form_0 = new org.apache.struts.taglib.html.FormTag();
- _jspx_th_html_form_0.setPageContext(pageContext);
- _jspx_th_html_form_0.setParent(_jspx_th_html_html_0);
- _jspx_th_html_form_0.setAction("/demoStructAction.do");
- _jspx_th_html_form_0.setMethod("POST");
- try {
- int _jspx_eval_html_form_0 = _jspx_th_html_form_0.doStartTag();
- if (_jspx_eval_html_form_0 == javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_BUFFERED)
- throw new JspTagException("Since tag handler class org.apache.struts.taglib.html.FormTag does not implement BodyTag, it can't return BodyTag.EVAL_BODY_TAG");
- if (_jspx_eval_html_form_0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
- do {
- // end
- // HTML // begin [file="/DemoStructJsp2.jsp";from=(14,55);to=(15,0)]
- out.write("n");
- // end
- // begin [file="/DemoStructJsp2.jsp";from=(15,0);to=(15,26)]
- /* ---- html:text ---- */
- org.apache.struts.taglib.html.TextTag _jspx_th_html_text_0 = new org.apache.struts.taglib.html.TextTag();
- _jspx_th_html_text_0.setPageContext(pageContext);
- _jspx_th_html_text_0.setParent(_jspx_th_html_form_0);
- _jspx_th_html_text_0.setProperty("单位");
- try {
- int _jspx_eval_html_text_0 = _jspx_th_html_text_0.doStartTag();
- if (_jspx_eval_html_text_0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
- try {
- if (_jspx_eval_html_text_0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
- out = pageContext.pushBody();
- _jspx_th_html_text_0.setBodyContent((javax.servlet.jsp.tagext.BodyContent) out);
- _jspx_th_html_text_0.doInitBody();
- }
- do {
- // end
- // begin [file="/DemoStructJsp2.jsp";from=(15,0);to=(15,26)]
- } while (_jspx_th_html_text_0.doAfterBody() == javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);
- } finally {
- if (_jspx_eval_html_text_0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE)
- out = pageContext.popBody();
- }
- }
- if (_jspx_th_html_text_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
- return;
- } finally {
- _jspx_th_html_text_0.release();
- }
- // end
- // HTML // begin [file="/DemoStructJsp2.jsp";from=(15,26);to=(17,0)]
- out.write("n<br>n");
- // end
- // begin [file="/DemoStructJsp2.jsp";from=(17,0);to=(17,26)]
- /* ---- html:text ---- */
- org.apache.struts.taglib.html.TextTag _jspx_th_html_text_1 = new org.apache.struts.taglib.html.TextTag();
- _jspx_th_html_text_1.setPageContext(pageContext);
- _jspx_th_html_text_1.setParent(_jspx_th_html_form_0);
- _jspx_th_html_text_1.setProperty("地址");
- try {
- int _jspx_eval_html_text_1 = _jspx_th_html_text_1.doStartTag();
- if (_jspx_eval_html_text_1 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
- try {
- if (_jspx_eval_html_text_1 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
- out = pageContext.pushBody();
- _jspx_th_html_text_1.setBodyContent((javax.servlet.jsp.tagext.BodyContent) out);
- _jspx_th_html_text_1.doInitBody();
- }
- do {
- // end
- // begin [file="/DemoStructJsp2.jsp";from=(17,0);to=(17,26)]
- } while (_jspx_th_html_text_1.doAfterBody() == javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);
- } finally {
- if (_jspx_eval_html_text_1 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE)
- out = pageContext.popBody();
- }
- }
- if (_jspx_th_html_text_1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
- return;
- } finally {
- _jspx_th_html_text_1.release();
- }
- // end
- // HTML // begin [file="/DemoStructJsp2.jsp";from=(17,26);to=(19,0)]
- out.write("n<br>n");
- // end
- // begin [file="/DemoStructJsp2.jsp";from=(19,0);to=(19,26)]
- /* ---- html:text ---- */
- org.apache.struts.taglib.html.TextTag _jspx_th_html_text_2 = new org.apache.struts.taglib.html.TextTag();
- _jspx_th_html_text_2.setPageContext(pageContext);
- _jspx_th_html_text_2.setParent(_jspx_th_html_form_0);
- _jspx_th_html_text_2.setProperty("姓名");
- try {
- int _jspx_eval_html_text_2 = _jspx_th_html_text_2.doStartTag();
- if (_jspx_eval_html_text_2 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
- try {
- if (_jspx_eval_html_text_2 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
- out = pageContext.pushBody();
- _jspx_th_html_text_2.setBodyContent((javax.servlet.jsp.tagext.BodyContent) out);
- _jspx_th_html_text_2.doInitBody();
- }
- do {
- // end
- // begin [file="/DemoStructJsp2.jsp";from=(19,0);to=(19,26)]
- } while (_jspx_th_html_text_2.doAfterBody() == javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);
- } finally {
- if (_jspx_eval_html_text_2 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE)
- out = pageContext.popBody();
- }
- }
- if (_jspx_th_html_text_2.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
- return;
- } finally {
- _jspx_th_html_text_2.release();
- }
- // end
- // HTML // begin [file="/DemoStructJsp2.jsp";from=(19,26);to=(21,0)]
- out.write("n<br>n");
- // end
- // begin [file="/DemoStructJsp2.jsp";from=(21,0);to=(21,47)]
- /* ---- html:submit ---- */
- org.apache.struts.taglib.html.SubmitTag _jspx_th_html_submit_0 = new org.apache.struts.taglib.html.SubmitTag();
- _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");
- try {
- int _jspx_eval_html_submit_0 = _jspx_th_html_submit_0.doStartTag();
- if (_jspx_eval_html_submit_0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
- try {
- if (_jspx_eval_html_submit_0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
- out = pageContext.pushBody();
- _jspx_th_html_submit_0.setBodyContent((javax.servlet.jsp.tagext.BodyContent) out);
- _jspx_th_html_submit_0.doInitBody();
- }
- do {
- // end
- // begin [file="/DemoStructJsp2.jsp";from=(21,0);to=(21,47)]
- } while (_jspx_th_html_submit_0.doAfterBody() == javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);
- } finally {
- if (_jspx_eval_html_submit_0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE)
- out = pageContext.popBody();
- }
- }
- if (_jspx_th_html_submit_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
- return;
- } finally {
- _jspx_th_html_submit_0.release();
- }
- // end
- // HTML // begin [file="/DemoStructJsp2.jsp";from=(21,47);to=(22,0)]
- out.write("<br>n");
- // end
- // begin [file="/DemoStructJsp2.jsp";from=(22,0);to=(22,28)]
- /* ---- html:reset ---- */
- org.apache.struts.taglib.html.ResetTag _jspx_th_html_reset_0 = new org.apache.struts.taglib.html.ResetTag();
- _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");
- try {
- int _jspx_eval_html_reset_0 = _jspx_th_html_reset_0.doStartTag();
- if (_jspx_eval_html_reset_0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
- try {
- if (_jspx_eval_html_reset_0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
- out = pageContext.pushBody();
- _jspx_th_html_reset_0.setBodyContent((javax.servlet.jsp.tagext.BodyContent) out);
- _jspx_th_html_reset_0.doInitBody();
- }
- do {
- // end
- // begin [file="/DemoStructJsp2.jsp";from=(22,0);to=(22,28)]
- } while (_jspx_th_html_reset_0.doAfterBody() == javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);
- } finally {
- if (_jspx_eval_html_reset_0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE)
- out = pageContext.popBody();
- }
- }
- if (_jspx_th_html_reset_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
- return;
- } finally {
- _jspx_th_html_reset_0.release();
- }
- // end
- // HTML // begin [file="/DemoStructJsp2.jsp";from=(22,28);to=(23,0)]
- out.write("n");
- // end
- // begin [file="/DemoStructJsp2.jsp";from=(23,0);to=(23,12)]
- } while (_jspx_th_html_form_0.doAfterBody() == javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);
- }
- if (_jspx_th_html_form_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
- return;
- } finally {
- _jspx_th_html_form_0.release();
- }
- // end
- // HTML // begin [file="/DemoStructJsp2.jsp";from=(23,12);to=(25,0)]
- out.write("n</body>n");
- // end
- // begin [file="/DemoStructJsp2.jsp";from=(25,0);to=(25,12)]
- } while (_jspx_th_html_html_0.doAfterBody() == javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);
- }
- if (_jspx_th_html_html_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
- return;
- } finally {
- _jspx_th_html_html_0.release();
- }
- // end
- // HTML // begin [file="/DemoStructJsp2.jsp";from=(25,12);to=(26,0)]
- out.write("n");
- // end
- } catch (Throwable t) {
- if (out != null && out.getBufferSize() != 0)
- out.clearBuffer();
- if (pageContext != null) pageContext.handlePageException(t);
- } finally {
- if (_jspxFactory != null) _jspxFactory.releasePageContext(pageContext);
- }
- }
- }