KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > jsp > menu_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 menu_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_set_var_value;
14   private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_c_if_test;
15   private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_cache_cache_scope_name_key;
16   private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_c_import_var_url;
17   private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_x_transform_xslt;
18   private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_c_out_value;
19   private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_c_out_value_escapeXml;
20
21   public menu_jsp() {
22     _jspx_tagPool_c_set_var_value = new org.apache.jasper.runtime.TagHandlerPool();
23     _jspx_tagPool_c_if_test = new org.apache.jasper.runtime.TagHandlerPool();
24     _jspx_tagPool_cache_cache_scope_name_key = new org.apache.jasper.runtime.TagHandlerPool();
25     _jspx_tagPool_c_import_var_url = new org.apache.jasper.runtime.TagHandlerPool();
26     _jspx_tagPool_x_transform_xslt = new org.apache.jasper.runtime.TagHandlerPool();
27     _jspx_tagPool_c_out_value = new org.apache.jasper.runtime.TagHandlerPool();
28     _jspx_tagPool_c_out_value_escapeXml = new org.apache.jasper.runtime.TagHandlerPool();
29   }
30
31   public java.util.List JavaDoc getIncludes() {
32     return _jspx_includes;
33   }
34
35   public void _jspDestroy() {
36     _jspx_tagPool_c_set_var_value.release();
37     _jspx_tagPool_c_if_test.release();
38     _jspx_tagPool_cache_cache_scope_name_key.release();
39     _jspx_tagPool_c_import_var_url.release();
40     _jspx_tagPool_x_transform_xslt.release();
41     _jspx_tagPool_c_out_value.release();
42     _jspx_tagPool_c_out_value_escapeXml.release();
43   }
44
45   public void _jspService(HttpServletRequest request, HttpServletResponse response)
46         throws java.io.IOException JavaDoc, ServletException {
47
48     JspFactory _jspxFactory = null;
49     javax.servlet.jsp.PageContext JavaDoc pageContext = null;
50     HttpSession session = null;
51     ServletContext application = null;
52     ServletConfig config = null;
53     JspWriter out = null;
54     Object JavaDoc page = this;
55     JspWriter _jspx_out = null;
56
57
58     try {
59       _jspxFactory = JspFactory.getDefaultFactory();
60       response.setContentType("text/html;charset=ISO-8859-1");
61       pageContext = _jspxFactory.getPageContext(this, request, response,
62                 null, true, 8192, true);
63       application = pageContext.getServletContext();
64       config = pageContext.getServletConfig();
65       session = pageContext.getSession();
66       out = pageContext.getOut();
67       _jspx_out = out;
68
69       out.write("\r\n");
70       out.write("\r\n");
71       out.write("\r\n");
72       out.write("\r\n\r\n");
73       out.write("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\r\n\r\n");
74       out.write("<html>\r\n");
75       out.write("<head>\r\n\t");
76       out.write("<title>ion menu");
77       out.write("</title>\r\n\t");
78       out.write("<link rel=\"stylesheet\" type=\"text/css\" HREF=\"styles/menu.css\">\r\n");
79       out.write("</head>\r\n\r\n");
80       out.write("<body marginheight=\"0\" marginwidth=\"0\" leftmargin=\"0\" topmargin=\"0\" rightmargin=\"0\" bottommargin=\"0\">\r\n\r\n\t");
81       if (_jspx_meth_c_set_0(pageContext))
82         return;
83       out.write("\r\n\t");
84       if (_jspx_meth_c_if_0(pageContext))
85         return;
86       out.write("\r\n\t");
87       if (_jspx_meth_c_if_1(pageContext))
88         return;
89       out.write("\t\r\n\r\n\t");
90       out.write("<!-- smart menu from menu.xml with cache ... -->\r\n\t");
91       /* ---- cache:cache ---- */
92       org.apache.taglibs.cache.CacheTag _jspx_th_cache_cache_0 = (org.apache.taglibs.cache.CacheTag) _jspx_tagPool_cache_cache_scope_name_key.get(org.apache.taglibs.cache.CacheTag.class);
93       _jspx_th_cache_cache_0.setPageContext(pageContext);
94       _jspx_th_cache_cache_0.setParent(null);
95       _jspx_th_cache_cache_0.setScope("application");
96       _jspx_th_cache_cache_0.setName("menus");
97       _jspx_th_cache_cache_0.setKey("${tab}_${userLogin}");
98       int _jspx_eval_cache_cache_0 = _jspx_th_cache_cache_0.doStartTag();
99       if (_jspx_eval_cache_cache_0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
100         if (_jspx_eval_cache_cache_0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
101           javax.servlet.jsp.tagext.BodyContent JavaDoc _bc = pageContext.pushBody();
102           _bc.clear();
103           out = _bc;
104           _jspx_th_cache_cache_0.setBodyContent(_bc);
105           _jspx_th_cache_cache_0.doInitBody();
106         }
107         do {
108           out.write("\r\n\t\t \r\n\t\t");
109           /* ---- c:import ---- */
110           org.apache.taglibs.standard.tag.el.core.ImportTag _jspx_th_c_import_0 = (org.apache.taglibs.standard.tag.el.core.ImportTag) _jspx_tagPool_c_import_var_url.get(org.apache.taglibs.standard.tag.el.core.ImportTag.class);
111           _jspx_th_c_import_0.setPageContext(pageContext);
112           _jspx_th_c_import_0.setParent(_jspx_th_cache_cache_0);
113           _jspx_th_c_import_0.setUrl("${localizedMenu}");
114           _jspx_th_c_import_0.setVar("xml");
115           try {
116             int _jspx_eval_c_import_0 = _jspx_th_c_import_0.doStartTag();
117             if (_jspx_th_c_import_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
118               return;
119           } catch (Throwable JavaDoc _jspx_exception) {
120             _jspx_th_c_import_0.doCatch(_jspx_exception);
121           } finally {
122             _jspx_th_c_import_0.doFinally();
123             _jspx_tagPool_c_import_var_url.reuse(_jspx_th_c_import_0);
124           }
125           out.write("\r\n\t\t");
126           /* ---- c:import ---- */
127           org.apache.taglibs.standard.tag.el.core.ImportTag _jspx_th_c_import_1 = (org.apache.taglibs.standard.tag.el.core.ImportTag) _jspx_tagPool_c_import_var_url.get(org.apache.taglibs.standard.tag.el.core.ImportTag.class);
128           _jspx_th_c_import_1.setPageContext(pageContext);
129           _jspx_th_c_import_1.setParent(_jspx_th_cache_cache_0);
130           _jspx_th_c_import_1.setUrl("/xml/menu.xsl");
131           _jspx_th_c_import_1.setVar("xsl");
132           try {
133             int _jspx_eval_c_import_1 = _jspx_th_c_import_1.doStartTag();
134             if (_jspx_th_c_import_1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
135               return;
136           } catch (Throwable JavaDoc _jspx_exception) {
137             _jspx_th_c_import_1.doCatch(_jspx_exception);
138           } finally {
139             _jspx_th_c_import_1.doFinally();
140             _jspx_tagPool_c_import_var_url.reuse(_jspx_th_c_import_1);
141           }
142           out.write("\r\n\t\t");
143           /* ---- x:transform ---- */
144           org.apache.taglibs.standard.tag.el.xml.TransformTag _jspx_th_x_transform_0 = (org.apache.taglibs.standard.tag.el.xml.TransformTag) _jspx_tagPool_x_transform_xslt.get(org.apache.taglibs.standard.tag.el.xml.TransformTag.class);
145           _jspx_th_x_transform_0.setPageContext(pageContext);
146           _jspx_th_x_transform_0.setParent(_jspx_th_cache_cache_0);
147           _jspx_th_x_transform_0.setXslt("${xsl}");
148           int _jspx_eval_x_transform_0 = _jspx_th_x_transform_0.doStartTag();
149           if (_jspx_eval_x_transform_0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
150             if (_jspx_eval_x_transform_0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
151               javax.servlet.jsp.tagext.BodyContent JavaDoc _bc = pageContext.pushBody();
152               _bc.clear();
153               out = _bc;
154               _jspx_th_x_transform_0.setBodyContent(_bc);
155               _jspx_th_x_transform_0.doInitBody();
156             }
157             do {
158               out.write("\t\t\r\n\t\t\t");
159               out.write("<backoffice-menu selectedTab=\"");
160               if (_jspx_meth_c_out_0(_jspx_th_x_transform_0, pageContext))
161                 return;
162               out.write("\" user=\"");
163               if (_jspx_meth_c_out_1(_jspx_th_x_transform_0, pageContext))
164                 return;
165               out.write("\">\r\n\t\t\t\t");
166               if (_jspx_meth_c_out_2(_jspx_th_x_transform_0, pageContext))
167                 return;
168               out.write("\t\t\t\t\t\t\r\n\t\t\t");
169               out.write("</backoffice-menu>\r\n\t\t");
170               int evalDoAfterBody = _jspx_th_x_transform_0.doAfterBody();
171               if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
172                 break;
173             } while (true);
174             if (_jspx_eval_x_transform_0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE)
175               out = pageContext.popBody();
176           }
177           if (_jspx_th_x_transform_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
178             return;
179           _jspx_tagPool_x_transform_xslt.reuse(_jspx_th_x_transform_0);
180           out.write("\r\n\t\t\r\n\t");
181           int evalDoAfterBody = _jspx_th_cache_cache_0.doAfterBody();
182           if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
183             break;
184         } while (true);
185         if (_jspx_eval_cache_cache_0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE)
186           out = pageContext.popBody();
187       }
188       if (_jspx_th_cache_cache_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
189         return;
190       _jspx_tagPool_cache_cache_scope_name_key.reuse(_jspx_th_cache_cache_0);
191       out.write("\r\n\r\n");
192       out.write("</body>\r\n");
193       out.write("</html>");
194     } catch (Throwable JavaDoc t) {
195       out = _jspx_out;
196       if (out != null && out.getBufferSize() != 0)
197         out.clearBuffer();
198       if (pageContext != null) pageContext.handlePageException(t);
199     } finally {
200       if (_jspxFactory != null) _jspxFactory.releasePageContext(pageContext);
201     }
202   }
203
204   private boolean _jspx_meth_c_set_0(javax.servlet.jsp.PageContext JavaDoc pageContext)
205           throws Throwable JavaDoc {
206     JspWriter out = pageContext.getOut();
207     /* ---- c:set ---- */
208     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);
209     _jspx_th_c_set_0.setPageContext(pageContext);
210     _jspx_th_c_set_0.setParent(null);
211     _jspx_th_c_set_0.setVar("tab");
212     _jspx_th_c_set_0.setValue("${param['tab']}");
213     int _jspx_eval_c_set_0 = _jspx_th_c_set_0.doStartTag();
214     if (_jspx_th_c_set_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
215       return true;
216     _jspx_tagPool_c_set_var_value.reuse(_jspx_th_c_set_0);
217     return false;
218   }
219
220   private boolean _jspx_meth_c_if_0(javax.servlet.jsp.PageContext JavaDoc pageContext)
221           throws Throwable JavaDoc {
222     JspWriter out = pageContext.getOut();
223     /* ---- c:if ---- */
224     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);
225     _jspx_th_c_if_0.setPageContext(pageContext);
226     _jspx_th_c_if_0.setParent(null);
227     _jspx_th_c_if_0.setTest("${tab==null}");
228     int _jspx_eval_c_if_0 = _jspx_th_c_if_0.doStartTag();
229     if (_jspx_eval_c_if_0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
230       do {
231         out.write("\r\n\t\t");
232         if (_jspx_meth_c_set_1(_jspx_th_c_if_0, pageContext))
233           return true;
234         out.write("\r\n\t");
235         int evalDoAfterBody = _jspx_th_c_if_0.doAfterBody();
236         if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
237           break;
238       } while (true);
239     }
240     if (_jspx_th_c_if_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
241       return true;
242     _jspx_tagPool_c_if_test.reuse(_jspx_th_c_if_0);
243     return false;
244   }
245
246   private boolean _jspx_meth_c_set_1(javax.servlet.jsp.tagext.Tag JavaDoc _jspx_th_c_if_0, javax.servlet.jsp.PageContext JavaDoc pageContext)
247           throws Throwable JavaDoc {
248     JspWriter out = pageContext.getOut();
249     /* ---- c:set ---- */
250     org.apache.taglibs.standard.tag.el.core.SetTag _jspx_th_c_set_1 = (org.apache.taglibs.standard.tag.el.core.SetTag) _jspx_tagPool_c_set_var_value.get(org.apache.taglibs.standard.tag.el.core.SetTag.class);
251     _jspx_th_c_set_1.setPageContext(pageContext);
252     _jspx_th_c_set_1.setParent(_jspx_th_c_if_0);
253     _jspx_th_c_set_1.setVar("tab");
254     _jspx_th_c_set_1.setValue("NULL");
255     int _jspx_eval_c_set_1 = _jspx_th_c_set_1.doStartTag();
256     if (_jspx_th_c_set_1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
257       return true;
258     _jspx_tagPool_c_set_var_value.reuse(_jspx_th_c_set_1);
259     return false;
260   }
261
262   private boolean _jspx_meth_c_if_1(javax.servlet.jsp.PageContext JavaDoc pageContext)
263           throws Throwable JavaDoc {
264     JspWriter out = pageContext.getOut();
265     /* ---- c:if ---- */
266     org.apache.taglibs.standard.tag.el.core.IfTag _jspx_th_c_if_1 = (org.apache.taglibs.standard.tag.el.core.IfTag) _jspx_tagPool_c_if_test.get(org.apache.taglibs.standard.tag.el.core.IfTag.class);
267     _jspx_th_c_if_1.setPageContext(pageContext);
268     _jspx_th_c_if_1.setParent(null);
269     _jspx_th_c_if_1.setTest("${userLogin==null}");
270     int _jspx_eval_c_if_1 = _jspx_th_c_if_1.doStartTag();
271     if (_jspx_eval_c_if_1 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
272       do {
273         out.write("\r\n\t\t");
274         if (_jspx_meth_c_set_2(_jspx_th_c_if_1, pageContext))
275           return true;
276         out.write("\r\n\t");
277         int evalDoAfterBody = _jspx_th_c_if_1.doAfterBody();
278         if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
279           break;
280       } while (true);
281     }
282     if (_jspx_th_c_if_1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
283       return true;
284     _jspx_tagPool_c_if_test.reuse(_jspx_th_c_if_1);
285     return false;
286   }
287
288   private boolean _jspx_meth_c_set_2(javax.servlet.jsp.tagext.Tag JavaDoc _jspx_th_c_if_1, javax.servlet.jsp.PageContext JavaDoc pageContext)
289           throws Throwable JavaDoc {
290     JspWriter out = pageContext.getOut();
291     /* ---- c:set ---- */
292     org.apache.taglibs.standard.tag.el.core.SetTag _jspx_th_c_set_2 = (org.apache.taglibs.standard.tag.el.core.SetTag) _jspx_tagPool_c_set_var_value.get(org.apache.taglibs.standard.tag.el.core.SetTag.class);
293     _jspx_th_c_set_2.setPageContext(pageContext);
294     _jspx_th_c_set_2.setParent(_jspx_th_c_if_1);
295     _jspx_th_c_set_2.setVar("tab");
296     _jspx_th_c_set_2.setValue("NOT_CONNECTED");
297     int _jspx_eval_c_set_2 = _jspx_th_c_set_2.doStartTag();
298     if (_jspx_th_c_set_2.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
299       return true;
300     _jspx_tagPool_c_set_var_value.reuse(_jspx_th_c_set_2);
301     return false;
302   }
303
304   private boolean _jspx_meth_c_out_0(javax.servlet.jsp.tagext.Tag JavaDoc _jspx_th_x_transform_0, javax.servlet.jsp.PageContext JavaDoc pageContext)
305           throws Throwable JavaDoc {
306     JspWriter out = pageContext.getOut();
307     /* ---- c:out ---- */
308     org.apache.taglibs.standard.tag.el.core.OutTag _jspx_th_c_out_0 = (org.apache.taglibs.standard.tag.el.core.OutTag) _jspx_tagPool_c_out_value.get(org.apache.taglibs.standard.tag.el.core.OutTag.class);
309     _jspx_th_c_out_0.setPageContext(pageContext);
310     _jspx_th_c_out_0.setParent(_jspx_th_x_transform_0);
311     _jspx_th_c_out_0.setValue("${tab}");
312     int _jspx_eval_c_out_0 = _jspx_th_c_out_0.doStartTag();
313     if (_jspx_th_c_out_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
314       return true;
315     _jspx_tagPool_c_out_value.reuse(_jspx_th_c_out_0);
316     return false;
317   }
318
319   private boolean _jspx_meth_c_out_1(javax.servlet.jsp.tagext.Tag JavaDoc _jspx_th_x_transform_0, javax.servlet.jsp.PageContext JavaDoc pageContext)
320           throws Throwable JavaDoc {
321     JspWriter out = pageContext.getOut();
322     /* ---- c:out ---- */
323     org.apache.taglibs.standard.tag.el.core.OutTag _jspx_th_c_out_1 = (org.apache.taglibs.standard.tag.el.core.OutTag) _jspx_tagPool_c_out_value.get(org.apache.taglibs.standard.tag.el.core.OutTag.class);
324     _jspx_th_c_out_1.setPageContext(pageContext);
325     _jspx_th_c_out_1.setParent(_jspx_th_x_transform_0);
326     _jspx_th_c_out_1.setValue("${userLogin}");
327     int _jspx_eval_c_out_1 = _jspx_th_c_out_1.doStartTag();
328     if (_jspx_th_c_out_1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
329       return true;
330     _jspx_tagPool_c_out_value.reuse(_jspx_th_c_out_1);
331     return false;
332   }
333
334   private boolean _jspx_meth_c_out_2(javax.servlet.jsp.tagext.Tag JavaDoc _jspx_th_x_transform_0, javax.servlet.jsp.PageContext JavaDoc pageContext)
335           throws Throwable JavaDoc {
336     JspWriter out = pageContext.getOut();
337     /* ---- c:out ---- */
338     org.apache.taglibs.standard.tag.el.core.OutTag _jspx_th_c_out_2 = (org.apache.taglibs.standard.tag.el.core.OutTag) _jspx_tagPool_c_out_value_escapeXml.get(org.apache.taglibs.standard.tag.el.core.OutTag.class);
339     _jspx_th_c_out_2.setPageContext(pageContext);
340     _jspx_th_c_out_2.setParent(_jspx_th_x_transform_0);
341     _jspx_th_c_out_2.setValue("${xml}");
342     _jspx_th_c_out_2.setEscapeXml("false");
343     int _jspx_eval_c_out_2 = _jspx_th_c_out_2.doStartTag();
344     if (_jspx_th_c_out_2.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
345       return true;
346     _jspx_tagPool_c_out_value_escapeXml.reuse(_jspx_th_c_out_2);
347     return false;
348   }
349 }
350
Popular Tags