KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > jsp > previewPublication_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 previewPublication_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_out_value;
14   private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_c_forEach_var_items;
15   private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_c_if_test;
16   private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_c_out_value_escapeXml;
17
18   public previewPublication_jsp() {
19     _jspx_tagPool_c_out_value = new org.apache.jasper.runtime.TagHandlerPool();
20     _jspx_tagPool_c_forEach_var_items = new org.apache.jasper.runtime.TagHandlerPool();
21     _jspx_tagPool_c_if_test = new org.apache.jasper.runtime.TagHandlerPool();
22     _jspx_tagPool_c_out_value_escapeXml = 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_out_value.release();
31     _jspx_tagPool_c_forEach_var_items.release();
32     _jspx_tagPool_c_if_test.release();
33     _jspx_tagPool_c_out_value_escapeXml.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");
63       out.write("\r\n\r\n");
64       out.write("<html>\r\n");
65       out.write("<head>\r\n\t");
66       out.write("<title>Aperçu de la publication");
67       out.write("</title>\r\n\t");
68       out.write("<link rel=\"stylesheet\" type=\"text/css\" HREF=\"styles/template-front.css\">\r\n");
69       out.write("</head>\r\n\r\n");
70       out.write("<body>\r\n\r\n");
71       out.write("<table width=\"95%\">\r\n\t");
72       out.write("<tr>\r\n\t\t");
73       out.write("<td valign=\"top\">\r\n\t\t\t");
74       out.write("<form action=\"previewPublication.x\" method=\"post\" id=\"form\">\r\n\t\t\t\t");
75       out.write("<input type=\"Hidden\" name=\"id\" value=\"");
76       if (_jspx_meth_c_out_0(pageContext))
77         return;
78       out.write("\">\r\n\t\t\t\t");
79       out.write("<input type=\"Hidden\" name=\"version\" value=\"");
80       if (_jspx_meth_c_out_1(pageContext))
81         return;
82       out.write("\">\r\n\t\t\t\t");
83       out.write("<img SRC=\"images/preview-tile.gif\" align=\"absmiddle\">\r\n\t\t\t\t");
84       out.write("<span style=\"font-family:verdana; color:#5d5d5d; font-size:18px; font-weight:bold; position:relative; top:-4px;\">\r\n\t\t\t\t\tAperçu de la publication\r\n\t\t\t\t");
85       out.write("</span>\r\n\t\t\t\t");
86       out.write("<table width=\"100%\">\r\n\t\t\t\t\t");
87       out.write("<tr>\r\n\t\t\t\t\t\t");
88       out.write("<td>\r\n\t\t\t\t\t\t\t");
89       out.write("<span style=\"font-family:verdana; color:#0148B2; font-size:10px; font-weight:bold;\">&nbsp;Style :&nbsp;");
90       out.write("</span>\r\n\t\t\t\t\t\t\t");
91       out.write("<select name=\"style\" style=\"font-family:verdana; color:black; font-size:9px; font-weight:bold; border:1px solid black; background-color:#d6e4f3;\" onChange=\"form.submit()\">\r\n\t\t\t\t\t\t\t\t");
92       /* ---- c:forEach ---- */
93       org.apache.taglibs.standard.tag.el.core.ForEachTag _jspx_th_c_forEach_0 = (org.apache.taglibs.standard.tag.el.core.ForEachTag) _jspx_tagPool_c_forEach_var_items.get(org.apache.taglibs.standard.tag.el.core.ForEachTag.class);
94       _jspx_th_c_forEach_0.setPageContext(pageContext);
95       _jspx_th_c_forEach_0.setParent(null);
96       _jspx_th_c_forEach_0.setVar("style");
97       _jspx_th_c_forEach_0.setItems("${styles}");
98       try {
99         int _jspx_eval_c_forEach_0 = _jspx_th_c_forEach_0.doStartTag();
100         if (_jspx_eval_c_forEach_0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
101           do {
102             out.write("\r\n\t\t\t\t\t\t\t\t\t");
103             out.write("<option value=\"");
104             if (_jspx_meth_c_out_2(_jspx_th_c_forEach_0, pageContext))
105               return;
106             out.write("\" ");
107             if (_jspx_meth_c_if_0(_jspx_th_c_forEach_0, pageContext))
108               return;
109             out.write(">");
110             if (_jspx_meth_c_out_3(_jspx_th_c_forEach_0, pageContext))
111               return;
112             out.write("</option>\r\n\t\t\t\t\t\t\t\t");
113             int evalDoAfterBody = _jspx_th_c_forEach_0.doAfterBody();
114             if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
115               break;
116           } while (true);
117         }
118         if (_jspx_th_c_forEach_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
119           return;
120       } catch (Throwable JavaDoc _jspx_exception) {
121         _jspx_th_c_forEach_0.doCatch(_jspx_exception);
122       } finally {
123         _jspx_th_c_forEach_0.doFinally();
124         _jspx_tagPool_c_forEach_var_items.reuse(_jspx_th_c_forEach_0);
125       }
126       out.write("\r\n\t\t\t\t\t\t\t");
127       out.write("</select>\r\n\t\t\t\t\t\t\t&nbsp;&nbsp;\r\n\t\t\t\t\t\t\t");
128       out.write("<span style=\"font-family:verdana; color:#0148B2; font-size:10px; font-weight:bold;\">&nbsp;Langue :&nbsp;");
129       out.write("</span>\r\n\t\t\t\t\t\t\t");
130       out.write("<select name=\"locale\" style=\"font-family:verdana; color:black; font-size:9px; font-weight:bold; border:1px solid black; background-color:#d6e4f3;\" onChange=\"form.submit()\">\r\n\t\t\t\t\t\t\t\t");
131       /* ---- c:forEach ---- */
132       org.apache.taglibs.standard.tag.el.core.ForEachTag _jspx_th_c_forEach_1 = (org.apache.taglibs.standard.tag.el.core.ForEachTag) _jspx_tagPool_c_forEach_var_items.get(org.apache.taglibs.standard.tag.el.core.ForEachTag.class);
133       _jspx_th_c_forEach_1.setPageContext(pageContext);
134       _jspx_th_c_forEach_1.setParent(null);
135       _jspx_th_c_forEach_1.setVar("localeItem");
136       _jspx_th_c_forEach_1.setItems("${locales}");
137       try {
138         int _jspx_eval_c_forEach_1 = _jspx_th_c_forEach_1.doStartTag();
139         if (_jspx_eval_c_forEach_1 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
140           do {
141             out.write("\r\n\t\t\t\t\t\t\t\t\t");
142             out.write("<option value=\"");
143             if (_jspx_meth_c_out_4(_jspx_th_c_forEach_1, pageContext))
144               return;
145             out.write("\" ");
146             if (_jspx_meth_c_if_1(_jspx_th_c_forEach_1, pageContext))
147               return;
148             out.write(">");
149             if (_jspx_meth_c_out_5(_jspx_th_c_forEach_1, pageContext))
150               return;
151             out.write("</option>\r\n\t\t\t\t\t\t\t\t");
152             int evalDoAfterBody = _jspx_th_c_forEach_1.doAfterBody();
153             if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
154               break;
155           } while (true);
156         }
157         if (_jspx_th_c_forEach_1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
158           return;
159       } catch (Throwable JavaDoc _jspx_exception) {
160         _jspx_th_c_forEach_1.doCatch(_jspx_exception);
161       } finally {
162         _jspx_th_c_forEach_1.doFinally();
163         _jspx_tagPool_c_forEach_var_items.reuse(_jspx_th_c_forEach_1);
164       }
165       out.write("\r\n\t\t\t\t\t\t\t");
166       out.write("</select>\r\n\t\t\t\t\t\t\t");
167       out.write("<hr width=\"100%\" size=\"1\" noshade color=\"#949494\">\r\n\t\t\t\t\t\t");
168       out.write("</td>\r\n\t\t\t\t\t");
169       out.write("</tr>\t\t\t\t\t\r\n\t\t\t\t");
170       out.write("</table>\t\t\t\r\n\t\t\t");
171       out.write("</form>\t\r\n\t\t\t");
172       if (_jspx_meth_c_out_6(pageContext))
173         return;
174       out.write("\r\n\t\t");
175       out.write("</td>\r\n\t");
176       out.write("</tr>\r\n");
177       out.write("</table>\r\n\r\n");
178       out.write("</body>\r\n\r\n");
179       out.write("</html>");
180     } catch (Throwable JavaDoc t) {
181       out = _jspx_out;
182       if (out != null && out.getBufferSize() != 0)
183         out.clearBuffer();
184       if (pageContext != null) pageContext.handlePageException(t);
185     } finally {
186       if (_jspxFactory != null) _jspxFactory.releasePageContext(pageContext);
187     }
188   }
189
190   private boolean _jspx_meth_c_out_0(javax.servlet.jsp.PageContext JavaDoc pageContext)
191           throws Throwable JavaDoc {
192     JspWriter out = pageContext.getOut();
193     /* ---- c:out ---- */
194     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);
195     _jspx_th_c_out_0.setPageContext(pageContext);
196     _jspx_th_c_out_0.setParent(null);
197     _jspx_th_c_out_0.setValue("${param['id']}");
198     int _jspx_eval_c_out_0 = _jspx_th_c_out_0.doStartTag();
199     if (_jspx_th_c_out_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
200       return true;
201     _jspx_tagPool_c_out_value.reuse(_jspx_th_c_out_0);
202     return false;
203   }
204
205   private boolean _jspx_meth_c_out_1(javax.servlet.jsp.PageContext JavaDoc pageContext)
206           throws Throwable JavaDoc {
207     JspWriter out = pageContext.getOut();
208     /* ---- c:out ---- */
209     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);
210     _jspx_th_c_out_1.setPageContext(pageContext);
211     _jspx_th_c_out_1.setParent(null);
212     _jspx_th_c_out_1.setValue("${param['version']}");
213     int _jspx_eval_c_out_1 = _jspx_th_c_out_1.doStartTag();
214     if (_jspx_th_c_out_1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
215       return true;
216     _jspx_tagPool_c_out_value.reuse(_jspx_th_c_out_1);
217     return false;
218   }
219
220   private boolean _jspx_meth_c_out_2(javax.servlet.jsp.tagext.Tag JavaDoc _jspx_th_c_forEach_0, javax.servlet.jsp.PageContext JavaDoc pageContext)
221           throws Throwable JavaDoc {
222     JspWriter out = pageContext.getOut();
223     /* ---- c:out ---- */
224     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.get(org.apache.taglibs.standard.tag.el.core.OutTag.class);
225     _jspx_th_c_out_2.setPageContext(pageContext);
226     _jspx_th_c_out_2.setParent(_jspx_th_c_forEach_0);
227     _jspx_th_c_out_2.setValue("${style}");
228     int _jspx_eval_c_out_2 = _jspx_th_c_out_2.doStartTag();
229     if (_jspx_th_c_out_2.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
230       return true;
231     _jspx_tagPool_c_out_value.reuse(_jspx_th_c_out_2);
232     return false;
233   }
234
235   private boolean _jspx_meth_c_if_0(javax.servlet.jsp.tagext.Tag JavaDoc _jspx_th_c_forEach_0, javax.servlet.jsp.PageContext JavaDoc pageContext)
236           throws Throwable JavaDoc {
237     JspWriter out = pageContext.getOut();
238     /* ---- c:if ---- */
239     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);
240     _jspx_th_c_if_0.setPageContext(pageContext);
241     _jspx_th_c_if_0.setParent(_jspx_th_c_forEach_0);
242     _jspx_th_c_if_0.setTest("${style==param['style']}");
243     int _jspx_eval_c_if_0 = _jspx_th_c_if_0.doStartTag();
244     if (_jspx_eval_c_if_0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
245       do {
246         out.write("selected");
247         int evalDoAfterBody = _jspx_th_c_if_0.doAfterBody();
248         if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
249           break;
250       } while (true);
251     }
252     if (_jspx_th_c_if_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
253       return true;
254     _jspx_tagPool_c_if_test.reuse(_jspx_th_c_if_0);
255     return false;
256   }
257
258   private boolean _jspx_meth_c_out_3(javax.servlet.jsp.tagext.Tag JavaDoc _jspx_th_c_forEach_0, javax.servlet.jsp.PageContext JavaDoc pageContext)
259           throws Throwable JavaDoc {
260     JspWriter out = pageContext.getOut();
261     /* ---- c:out ---- */
262     org.apache.taglibs.standard.tag.el.core.OutTag _jspx_th_c_out_3 = (org.apache.taglibs.standard.tag.el.core.OutTag) _jspx_tagPool_c_out_value.get(org.apache.taglibs.standard.tag.el.core.OutTag.class);
263     _jspx_th_c_out_3.setPageContext(pageContext);
264     _jspx_th_c_out_3.setParent(_jspx_th_c_forEach_0);
265     _jspx_th_c_out_3.setValue("${style}");
266     int _jspx_eval_c_out_3 = _jspx_th_c_out_3.doStartTag();
267     if (_jspx_th_c_out_3.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
268       return true;
269     _jspx_tagPool_c_out_value.reuse(_jspx_th_c_out_3);
270     return false;
271   }
272
273   private boolean _jspx_meth_c_out_4(javax.servlet.jsp.tagext.Tag JavaDoc _jspx_th_c_forEach_1, javax.servlet.jsp.PageContext JavaDoc pageContext)
274           throws Throwable JavaDoc {
275     JspWriter out = pageContext.getOut();
276     /* ---- c:out ---- */
277     org.apache.taglibs.standard.tag.el.core.OutTag _jspx_th_c_out_4 = (org.apache.taglibs.standard.tag.el.core.OutTag) _jspx_tagPool_c_out_value.get(org.apache.taglibs.standard.tag.el.core.OutTag.class);
278     _jspx_th_c_out_4.setPageContext(pageContext);
279     _jspx_th_c_out_4.setParent(_jspx_th_c_forEach_1);
280     _jspx_th_c_out_4.setValue("${localeItem.locale}");
281     int _jspx_eval_c_out_4 = _jspx_th_c_out_4.doStartTag();
282     if (_jspx_th_c_out_4.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
283       return true;
284     _jspx_tagPool_c_out_value.reuse(_jspx_th_c_out_4);
285     return false;
286   }
287
288   private boolean _jspx_meth_c_if_1(javax.servlet.jsp.tagext.Tag JavaDoc _jspx_th_c_forEach_1, javax.servlet.jsp.PageContext JavaDoc pageContext)
289           throws Throwable JavaDoc {
290     JspWriter out = pageContext.getOut();
291     /* ---- c:if ---- */
292     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);
293     _jspx_th_c_if_1.setPageContext(pageContext);
294     _jspx_th_c_if_1.setParent(_jspx_th_c_forEach_1);
295     _jspx_th_c_if_1.setTest("${localeItem.locale==param['locale']}");
296     int _jspx_eval_c_if_1 = _jspx_th_c_if_1.doStartTag();
297     if (_jspx_eval_c_if_1 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
298       do {
299         out.write("selected");
300         int evalDoAfterBody = _jspx_th_c_if_1.doAfterBody();
301         if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
302           break;
303       } while (true);
304     }
305     if (_jspx_th_c_if_1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
306       return true;
307     _jspx_tagPool_c_if_test.reuse(_jspx_th_c_if_1);
308     return false;
309   }
310
311   private boolean _jspx_meth_c_out_5(javax.servlet.jsp.tagext.Tag JavaDoc _jspx_th_c_forEach_1, javax.servlet.jsp.PageContext JavaDoc pageContext)
312           throws Throwable JavaDoc {
313     JspWriter out = pageContext.getOut();
314     /* ---- c:out ---- */
315     org.apache.taglibs.standard.tag.el.core.OutTag _jspx_th_c_out_5 = (org.apache.taglibs.standard.tag.el.core.OutTag) _jspx_tagPool_c_out_value.get(org.apache.taglibs.standard.tag.el.core.OutTag.class);
316     _jspx_th_c_out_5.setPageContext(pageContext);
317     _jspx_th_c_out_5.setParent(_jspx_th_c_forEach_1);
318     _jspx_th_c_out_5.setValue("${localeItem.name}");
319     int _jspx_eval_c_out_5 = _jspx_th_c_out_5.doStartTag();
320     if (_jspx_th_c_out_5.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
321       return true;
322     _jspx_tagPool_c_out_value.reuse(_jspx_th_c_out_5);
323     return false;
324   }
325
326   private boolean _jspx_meth_c_out_6(javax.servlet.jsp.PageContext JavaDoc pageContext)
327           throws Throwable JavaDoc {
328     JspWriter out = pageContext.getOut();
329     /* ---- c:out ---- */
330     org.apache.taglibs.standard.tag.el.core.OutTag _jspx_th_c_out_6 = (org.apache.taglibs.standard.tag.el.core.OutTag) _jspx_tagPool_c_out_value_escapeXml.get(org.apache.taglibs.standard.tag.el.core.OutTag.class);
331     _jspx_th_c_out_6.setPageContext(pageContext);
332     _jspx_th_c_out_6.setParent(null);
333     _jspx_th_c_out_6.setValue("${view}");
334     _jspx_th_c_out_6.setEscapeXml("false");
335     int _jspx_eval_c_out_6 = _jspx_th_c_out_6.doStartTag();
336     if (_jspx_th_c_out_6.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
337       return true;
338     _jspx_tagPool_c_out_value_escapeXml.reuse(_jspx_th_c_out_6);
339     return false;
340   }
341 }
342
Popular Tags