KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > jsp > merge_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 merge_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_import_var_url;
14   private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_html_form_action;
15   private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_x_transform_xslt;
16   private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_c_out_value_escapeXml;
17   private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_x_param_value_name;
18   private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_c_out_value;
19
20   public merge_jsp() {
21     _jspx_tagPool_c_import_var_url = new org.apache.jasper.runtime.TagHandlerPool();
22     _jspx_tagPool_html_form_action = new org.apache.jasper.runtime.TagHandlerPool();
23     _jspx_tagPool_x_transform_xslt = new org.apache.jasper.runtime.TagHandlerPool();
24     _jspx_tagPool_c_out_value_escapeXml = new org.apache.jasper.runtime.TagHandlerPool();
25     _jspx_tagPool_x_param_value_name = new org.apache.jasper.runtime.TagHandlerPool();
26     _jspx_tagPool_c_out_value = new org.apache.jasper.runtime.TagHandlerPool();
27   }
28
29   public java.util.List JavaDoc getIncludes() {
30     return _jspx_includes;
31   }
32
33   public void _jspDestroy() {
34     _jspx_tagPool_c_import_var_url.release();
35     _jspx_tagPool_html_form_action.release();
36     _jspx_tagPool_x_transform_xslt.release();
37     _jspx_tagPool_c_out_value_escapeXml.release();
38     _jspx_tagPool_x_param_value_name.release();
39     _jspx_tagPool_c_out_value.release();
40   }
41
42   public void _jspService(HttpServletRequest request, HttpServletResponse response)
43         throws java.io.IOException JavaDoc, ServletException {
44
45     JspFactory _jspxFactory = null;
46     javax.servlet.jsp.PageContext JavaDoc pageContext = null;
47     HttpSession session = null;
48     ServletContext application = null;
49     ServletConfig config = null;
50     JspWriter out = null;
51     Object JavaDoc page = this;
52     JspWriter _jspx_out = null;
53
54
55     try {
56       _jspxFactory = JspFactory.getDefaultFactory();
57       response.setContentType("text/html;charset=ISO-8859-1");
58       pageContext = _jspxFactory.getPageContext(this, request, response,
59                 null, true, 8192, true);
60       application = pageContext.getServletContext();
61       config = pageContext.getServletConfig();
62       session = pageContext.getSession();
63       out = pageContext.getOut();
64       _jspx_out = out;
65
66       out.write("\r\n");
67       out.write("\r\n");
68       out.write("\r\n");
69       out.write("\r\n\r\n");
70       /* ---- c:import ---- */
71       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);
72       _jspx_th_c_import_0.setPageContext(pageContext);
73       _jspx_th_c_import_0.setParent(null);
74       _jspx_th_c_import_0.setUrl("/edx/getPublicationXml.jsp?id=${param['id']}&version=${param['version']}");
75       _jspx_th_c_import_0.setVar("old");
76       try {
77         int _jspx_eval_c_import_0 = _jspx_th_c_import_0.doStartTag();
78         if (_jspx_th_c_import_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
79           return;
80       } catch (Throwable JavaDoc _jspx_exception) {
81         _jspx_th_c_import_0.doCatch(_jspx_exception);
82       } finally {
83         _jspx_th_c_import_0.doFinally();
84         _jspx_tagPool_c_import_var_url.reuse(_jspx_th_c_import_0);
85       }
86       out.write("\r\n");
87       /* ---- c:import ---- */
88       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);
89       _jspx_th_c_import_1.setPageContext(pageContext);
90       _jspx_th_c_import_1.setParent(null);
91       _jspx_th_c_import_1.setUrl("/edx/formMerger.xsl");
92       _jspx_th_c_import_1.setVar("xsl");
93       try {
94         int _jspx_eval_c_import_1 = _jspx_th_c_import_1.doStartTag();
95         if (_jspx_th_c_import_1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
96           return;
97       } catch (Throwable JavaDoc _jspx_exception) {
98         _jspx_th_c_import_1.doCatch(_jspx_exception);
99       } finally {
100         _jspx_th_c_import_1.doFinally();
101         _jspx_tagPool_c_import_var_url.reuse(_jspx_th_c_import_1);
102       }
103       out.write("\r\n\r\n");
104       out.write("<html>\r\n\t");
105       out.write("<body>\r\n\t\t");
106       /* ---- html:form ---- */
107       org.apache.struts.taglib.html.FormTag _jspx_th_html_form_0 = (org.apache.struts.taglib.html.FormTag) _jspx_tagPool_html_form_action.get(org.apache.struts.taglib.html.FormTag.class);
108       _jspx_th_html_form_0.setPageContext(pageContext);
109       _jspx_th_html_form_0.setParent(null);
110       _jspx_th_html_form_0.setAction("editPublication.x");
111       int _jspx_eval_html_form_0 = _jspx_th_html_form_0.doStartTag();
112       if (_jspx_eval_html_form_0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
113         do {
114           out.write("\t\t\r\n\t\t\t\r\n\t\t\t");
115           out.write("<textarea cols=\"70\" rows=\"15\" name=\"data\" style=\"visibility:hidden; position:absolute\">\r\n\t\t\t\t");
116           /* ---- x:transform ---- */
117           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);
118           _jspx_th_x_transform_0.setPageContext(pageContext);
119           _jspx_th_x_transform_0.setParent(_jspx_th_html_form_0);
120           _jspx_th_x_transform_0.setXslt("${xsl}");
121           int _jspx_eval_x_transform_0 = _jspx_th_x_transform_0.doStartTag();
122           if (_jspx_eval_x_transform_0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
123             if (_jspx_eval_x_transform_0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
124               javax.servlet.jsp.tagext.BodyContent JavaDoc _bc = pageContext.pushBody();
125               _bc.clear();
126               out = _bc;
127               _jspx_th_x_transform_0.setBodyContent(_bc);
128               _jspx_th_x_transform_0.doInitBody();
129             }
130             do {
131               out.write("\r\n\t\t\t\t\t");
132               out.write("<nextimeSupaXml>\r\n\t\t\t\t\t\t");
133               if (_jspx_meth_c_out_0(_jspx_th_x_transform_0, pageContext))
134                 return;
135               out.write("\r\n\t\t\t\t\t\t");
136               out.write("<data>\r\n\t\t\t\t\t\t\t");
137
138                                 java.util.Enumeration JavaDoc names = request.getParameterNames();
139                                 while( names.hasMoreElements() ) {
140                                     String JavaDoc name = names.nextElement()+"";
141                                     String JavaDoc value = request.getParameter(name);
142                                     
143                                     // hack for € symbol
144
value = value.replaceAll( "€", "&amp;euro;" );
145                                     
146                                     if( name.startsWith("FIELD_") ) {
147                                         
148               out.write("<");
149               out.print(name.substring(6));
150               out.write(">");
151               out.write("<![CDATA[");
152               out.print(value);
153               out.write("]]>");
154               out.write("</");
155               out.print(name.substring(6));
156               out.write(">");
157
158                                     }
159                                 }
160                             
161               out.write("\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t");
162               out.write("</data>\r\n\t\t\t\t\t");
163               out.write("</nextimeSupaXml>\r\n\t\t\t\t\t");
164               if (_jspx_meth_x_param_0(_jspx_th_x_transform_0, pageContext))
165                 return;
166               out.write("\r\n\t\t\t\t");
167               int evalDoAfterBody = _jspx_th_x_transform_0.doAfterBody();
168               if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
169                 break;
170             } while (true);
171             if (_jspx_eval_x_transform_0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE)
172               out = pageContext.popBody();
173           }
174           if (_jspx_th_x_transform_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
175             return;
176           _jspx_tagPool_x_transform_xslt.reuse(_jspx_th_x_transform_0);
177           out.write("\r\n\t\t\t");
178           out.write("</textarea>\r\n\t\t\t\r\n\t\t\t");
179           out.write("<input type=\"Hidden\" name=\"id\" value=\"");
180           if (_jspx_meth_c_out_1(_jspx_th_html_form_0, pageContext))
181             return;
182           out.write("\">\r\n\t\t\t");
183           out.write("<input type=\"Hidden\" name=\"version\" value=\"");
184           if (_jspx_meth_c_out_2(_jspx_th_html_form_0, pageContext))
185             return;
186           out.write("\">\r\n\t\t\t");
187           out.write("<input type=\"Hidden\" name=\"retour\" value=\"");
188           if (_jspx_meth_c_out_3(_jspx_th_html_form_0, pageContext))
189             return;
190           out.write("\">\r\n\t\t\t");
191           out.write("<input type=\"Hidden\" name=\"itsOk\" value=\"itsOk\">\r\n\t\t\t");
192           out.write("<input type=\"hidden\" name=\"date\" size=\"12\" value=\"");
193           if (_jspx_meth_c_out_4(_jspx_th_html_form_0, pageContext))
194             return;
195           out.write("\">\r\n\t\t\t\r\n\t\t");
196           int evalDoAfterBody = _jspx_th_html_form_0.doAfterBody();
197           if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
198             break;
199         } while (true);
200       }
201       if (_jspx_th_html_form_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
202         return;
203       _jspx_tagPool_html_form_action.reuse(_jspx_th_html_form_0);
204       out.write("\r\n\t");
205       out.write("</body>\r\n");
206       out.write("</html>\r\n\r\n");
207       out.write("<script>\r\n\tdocument.forms(0).submit();\r\n");
208       out.write("</script>");
209     } catch (Throwable JavaDoc t) {
210       out = _jspx_out;
211       if (out != null && out.getBufferSize() != 0)
212         out.clearBuffer();
213       if (pageContext != null) pageContext.handlePageException(t);
214     } finally {
215       if (_jspxFactory != null) _jspxFactory.releasePageContext(pageContext);
216     }
217   }
218
219   private boolean _jspx_meth_c_out_0(javax.servlet.jsp.tagext.Tag JavaDoc _jspx_th_x_transform_0, javax.servlet.jsp.PageContext JavaDoc pageContext)
220           throws Throwable JavaDoc {
221     JspWriter out = pageContext.getOut();
222     /* ---- c:out ---- */
223     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_escapeXml.get(org.apache.taglibs.standard.tag.el.core.OutTag.class);
224     _jspx_th_c_out_0.setPageContext(pageContext);
225     _jspx_th_c_out_0.setParent(_jspx_th_x_transform_0);
226     _jspx_th_c_out_0.setValue("${param['data']}");
227     _jspx_th_c_out_0.setEscapeXml("false");
228     int _jspx_eval_c_out_0 = _jspx_th_c_out_0.doStartTag();
229     if (_jspx_th_c_out_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
230       return true;
231     _jspx_tagPool_c_out_value_escapeXml.reuse(_jspx_th_c_out_0);
232     return false;
233   }
234
235   private boolean _jspx_meth_x_param_0(javax.servlet.jsp.tagext.Tag JavaDoc _jspx_th_x_transform_0, javax.servlet.jsp.PageContext JavaDoc pageContext)
236           throws Throwable JavaDoc {
237     JspWriter out = pageContext.getOut();
238     /* ---- x:param ---- */
239     org.apache.taglibs.standard.tag.el.xml.ParamTag _jspx_th_x_param_0 = (org.apache.taglibs.standard.tag.el.xml.ParamTag) _jspx_tagPool_x_param_value_name.get(org.apache.taglibs.standard.tag.el.xml.ParamTag.class);
240     _jspx_th_x_param_0.setPageContext(pageContext);
241     _jspx_th_x_param_0.setParent(_jspx_th_x_transform_0);
242     _jspx_th_x_param_0.setName("locale");
243     _jspx_th_x_param_0.setValue("${param['currentLocale']}");
244     int _jspx_eval_x_param_0 = _jspx_th_x_param_0.doStartTag();
245     if (_jspx_th_x_param_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
246       return true;
247     _jspx_tagPool_x_param_value_name.reuse(_jspx_th_x_param_0);
248     return false;
249   }
250
251   private boolean _jspx_meth_c_out_1(javax.servlet.jsp.tagext.Tag JavaDoc _jspx_th_html_form_0, javax.servlet.jsp.PageContext JavaDoc pageContext)
252           throws Throwable JavaDoc {
253     JspWriter out = pageContext.getOut();
254     /* ---- c:out ---- */
255     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);
256     _jspx_th_c_out_1.setPageContext(pageContext);
257     _jspx_th_c_out_1.setParent(_jspx_th_html_form_0);
258     _jspx_th_c_out_1.setValue("${param['id']}");
259     int _jspx_eval_c_out_1 = _jspx_th_c_out_1.doStartTag();
260     if (_jspx_th_c_out_1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
261       return true;
262     _jspx_tagPool_c_out_value.reuse(_jspx_th_c_out_1);
263     return false;
264   }
265
266   private boolean _jspx_meth_c_out_2(javax.servlet.jsp.tagext.Tag JavaDoc _jspx_th_html_form_0, javax.servlet.jsp.PageContext JavaDoc pageContext)
267           throws Throwable JavaDoc {
268     JspWriter out = pageContext.getOut();
269     /* ---- c:out ---- */
270     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);
271     _jspx_th_c_out_2.setPageContext(pageContext);
272     _jspx_th_c_out_2.setParent(_jspx_th_html_form_0);
273     _jspx_th_c_out_2.setValue("${param['version']}");
274     int _jspx_eval_c_out_2 = _jspx_th_c_out_2.doStartTag();
275     if (_jspx_th_c_out_2.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
276       return true;
277     _jspx_tagPool_c_out_value.reuse(_jspx_th_c_out_2);
278     return false;
279   }
280
281   private boolean _jspx_meth_c_out_3(javax.servlet.jsp.tagext.Tag JavaDoc _jspx_th_html_form_0, javax.servlet.jsp.PageContext JavaDoc pageContext)
282           throws Throwable JavaDoc {
283     JspWriter out = pageContext.getOut();
284     /* ---- c:out ---- */
285     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);
286     _jspx_th_c_out_3.setPageContext(pageContext);
287     _jspx_th_c_out_3.setParent(_jspx_th_html_form_0);
288     _jspx_th_c_out_3.setValue("${param['retour']}");
289     int _jspx_eval_c_out_3 = _jspx_th_c_out_3.doStartTag();
290     if (_jspx_th_c_out_3.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
291       return true;
292     _jspx_tagPool_c_out_value.reuse(_jspx_th_c_out_3);
293     return false;
294   }
295
296   private boolean _jspx_meth_c_out_4(javax.servlet.jsp.tagext.Tag JavaDoc _jspx_th_html_form_0, javax.servlet.jsp.PageContext JavaDoc pageContext)
297           throws Throwable JavaDoc {
298     JspWriter out = pageContext.getOut();
299     /* ---- c:out ---- */
300     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);
301     _jspx_th_c_out_4.setPageContext(pageContext);
302     _jspx_th_c_out_4.setParent(_jspx_th_html_form_0);
303     _jspx_th_c_out_4.setValue("${param['date']}");
304     int _jspx_eval_c_out_4 = _jspx_th_c_out_4.doStartTag();
305     if (_jspx_th_c_out_4.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
306       return true;
307     _jspx_tagPool_c_out_value.reuse(_jspx_th_c_out_4);
308     return false;
309   }
310 }
311
Popular Tags