KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > jsp > page_jsp


1 package org.apache.jsp;
2
3 import javax.servlet.*;
4 import javax.servlet.http.*;
5 import javax.servlet.jsp.*;
6 import org.apache.jasper.runtime.*;
7
8 public class page_jsp extends HttpJspBase {
9
10
11   private static java.util.Vector JavaDoc _jspx_includes;
12
13   private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_c_if_test;
14   private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_c_set_var_value;
15   private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_template_insert_template;
16   private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_template_put_name_direct;
17
18   public page_jsp() {
19     _jspx_tagPool_c_if_test = new org.apache.jasper.runtime.TagHandlerPool();
20     _jspx_tagPool_c_set_var_value = new org.apache.jasper.runtime.TagHandlerPool();
21     _jspx_tagPool_template_insert_template = new org.apache.jasper.runtime.TagHandlerPool();
22     _jspx_tagPool_template_put_name_direct = new org.apache.jasper.runtime.TagHandlerPool();
23   }
24
25   public java.util.List JavaDoc getIncludes() {
26     return _jspx_includes;
27   }
28
29   public void _jspDestroy() {
30     _jspx_tagPool_c_if_test.release();
31     _jspx_tagPool_c_set_var_value.release();
32     _jspx_tagPool_template_insert_template.release();
33     _jspx_tagPool_template_put_name_direct.release();
34   }
35
36   public void _jspService(HttpServletRequest request, HttpServletResponse response)
37         throws java.io.IOException JavaDoc, ServletException {
38
39     JspFactory _jspxFactory = null;
40     javax.servlet.jsp.PageContext JavaDoc pageContext = null;
41     HttpSession session = null;
42     ServletContext application = null;
43     ServletConfig config = null;
44     JspWriter out = null;
45     Object JavaDoc page = this;
46     JspWriter _jspx_out = null;
47
48
49     try {
50       _jspxFactory = JspFactory.getDefaultFactory();
51       response.setContentType("text/html;charset=ISO-8859-1");
52       pageContext = _jspxFactory.getPageContext(this, request, response,
53                 null, true, 8192, true);
54       application = pageContext.getServletContext();
55       config = pageContext.getServletConfig();
56       session = pageContext.getSession();
57       out = pageContext.getOut();
58       _jspx_out = out;
59
60       out.write("\r\n");
61       out.write("\r\n");
62       out.write("\r\n\r\n");
63       out.write("<!-- select the detailled publication -->\r\n");
64       if (_jspx_meth_c_if_0(pageContext))
65         return;
66       out.write("\r\n\t\r\n");
67       if (_jspx_meth_template_insert_0(pageContext))
68         return;
69       out.write("\r\n\t\r\n\t\r\n\r\n\r\n");
70     } catch (Throwable JavaDoc t) {
71       out = _jspx_out;
72       if (out != null && out.getBufferSize() != 0)
73         out.clearBuffer();
74       if (pageContext != null) pageContext.handlePageException(t);
75     } finally {
76       if (_jspxFactory != null) _jspxFactory.releasePageContext(pageContext);
77     }
78   }
79
80   private boolean _jspx_meth_c_if_0(javax.servlet.jsp.PageContext JavaDoc pageContext)
81           throws Throwable JavaDoc {
82     JspWriter out = pageContext.getOut();
83     /* ---- c:if ---- */
84     org.apache.taglibs.standard.tag.el.core.IfTag _jspx_th_c_if_0 = (org.apache.taglibs.standard.tag.el.core.IfTag) _jspx_tagPool_c_if_test.get(org.apache.taglibs.standard.tag.el.core.IfTag.class);
85     _jspx_th_c_if_0.setPageContext(pageContext);
86     _jspx_th_c_if_0.setParent(null);
87     _jspx_th_c_if_0.setTest("${ionStatus.currentPublication!=null}");
88     int _jspx_eval_c_if_0 = _jspx_th_c_if_0.doStartTag();
89     if (_jspx_eval_c_if_0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
90       do {
91         out.write("\r\n\t");
92         if (_jspx_meth_c_set_0(_jspx_th_c_if_0, pageContext))
93           return true;
94         out.write("\r\n");
95         int evalDoAfterBody = _jspx_th_c_if_0.doAfterBody();
96         if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
97           break;
98       } while (true);
99     }
100     if (_jspx_th_c_if_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
101       return true;
102     _jspx_tagPool_c_if_test.reuse(_jspx_th_c_if_0);
103     return false;
104   }
105
106   private boolean _jspx_meth_c_set_0(javax.servlet.jsp.tagext.Tag JavaDoc _jspx_th_c_if_0, javax.servlet.jsp.PageContext JavaDoc pageContext)
107           throws Throwable JavaDoc {
108     JspWriter out = pageContext.getOut();
109     /* ---- c:set ---- */
110     org.apache.taglibs.standard.tag.el.core.SetTag _jspx_th_c_set_0 = (org.apache.taglibs.standard.tag.el.core.SetTag) _jspx_tagPool_c_set_var_value.get(org.apache.taglibs.standard.tag.el.core.SetTag.class);
111     _jspx_th_c_set_0.setPageContext(pageContext);
112     _jspx_th_c_set_0.setParent(_jspx_th_c_if_0);
113     _jspx_th_c_set_0.setVar("detailledId");
114     _jspx_th_c_set_0.setValue("${ionStatus.currentPublication.id}");
115     int _jspx_eval_c_set_0 = _jspx_th_c_set_0.doStartTag();
116     if (_jspx_th_c_set_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
117       return true;
118     _jspx_tagPool_c_set_var_value.reuse(_jspx_th_c_set_0);
119     return false;
120   }
121
122   private boolean _jspx_meth_template_insert_0(javax.servlet.jsp.PageContext JavaDoc pageContext)
123           throws Throwable JavaDoc {
124     JspWriter out = pageContext.getOut();
125     /* ---- template:insert ---- */
126     org.apache.struts.taglib.template.InsertTag _jspx_th_template_insert_0 = (org.apache.struts.taglib.template.InsertTag) _jspx_tagPool_template_insert_template.get(org.apache.struts.taglib.template.InsertTag.class);
127     _jspx_th_template_insert_0.setPageContext(pageContext);
128     _jspx_th_template_insert_0.setParent(null);
129     _jspx_th_template_insert_0.setTemplate("general-template.jsp");
130     int _jspx_eval_template_insert_0 = _jspx_th_template_insert_0.doStartTag();
131     if (_jspx_eval_template_insert_0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
132       do {
133         out.write(" \r\n\t");
134         if (_jspx_meth_template_put_0(_jspx_th_template_insert_0, pageContext))
135           return true;
136         out.write("\r\n");
137         int evalDoAfterBody = _jspx_th_template_insert_0.doAfterBody();
138         if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
139           break;
140       } while (true);
141     }
142     if (_jspx_th_template_insert_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
143       return true;
144     _jspx_tagPool_template_insert_template.reuse(_jspx_th_template_insert_0);
145     return false;
146   }
147
148   private boolean _jspx_meth_template_put_0(javax.servlet.jsp.tagext.Tag JavaDoc _jspx_th_template_insert_0, javax.servlet.jsp.PageContext JavaDoc pageContext)
149           throws Throwable JavaDoc {
150     JspWriter out = pageContext.getOut();
151     /* ---- template:put ---- */
152     org.apache.struts.taglib.template.PutTag _jspx_th_template_put_0 = (org.apache.struts.taglib.template.PutTag) _jspx_tagPool_template_put_name_direct.get(org.apache.struts.taglib.template.PutTag.class);
153     _jspx_th_template_put_0.setPageContext(pageContext);
154     _jspx_th_template_put_0.setParent(_jspx_th_template_insert_0);
155     _jspx_th_template_put_0.setName("content");
156     _jspx_th_template_put_0.setDirect("true");
157     int _jspx_eval_template_put_0 = _jspx_th_template_put_0.doStartTag();
158     if (_jspx_eval_template_put_0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
159       if (_jspx_eval_template_put_0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
160         javax.servlet.jsp.tagext.BodyContent JavaDoc _bc = pageContext.pushBody();
161         _bc.clear();
162         out = _bc;
163         _jspx_th_template_put_0.setBodyContent(_bc);
164         _jspx_th_template_put_0.doInitBody();
165       }
166       do {
167         out.write(" \r\n \t \r\n\t\tpage...\r\n\r\n\t");
168         int evalDoAfterBody = _jspx_th_template_put_0.doAfterBody();
169         if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
170           break;
171       } while (true);
172       if (_jspx_eval_template_put_0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE)
173         out = pageContext.popBody();
174     }
175     if (_jspx_th_template_put_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
176       return true;
177     _jspx_tagPool_template_put_name_direct.reuse(_jspx_th_template_put_0);
178     return false;
179   }
180 }
181
Popular Tags