KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > jsp > config_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 config_jsp extends HttpJspBase {
9
10
11   private static java.util.Vector JavaDoc _jspx_includes;
12
13   private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_template_insert_template;
14   private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_template_put_name_direct_content;
15   private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_template_put_name_direct;
16   private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_bean_message_key;
17   private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_bean_write_name;
18
19   public config_jsp() {
20     _jspx_tagPool_template_insert_template = new org.apache.jasper.runtime.TagHandlerPool();
21     _jspx_tagPool_template_put_name_direct_content = new org.apache.jasper.runtime.TagHandlerPool();
22     _jspx_tagPool_template_put_name_direct = new org.apache.jasper.runtime.TagHandlerPool();
23     _jspx_tagPool_bean_message_key = new org.apache.jasper.runtime.TagHandlerPool();
24     _jspx_tagPool_bean_write_name = new org.apache.jasper.runtime.TagHandlerPool();
25   }
26
27   public java.util.List JavaDoc getIncludes() {
28     return _jspx_includes;
29   }
30
31   public void _jspDestroy() {
32     _jspx_tagPool_template_insert_template.release();
33     _jspx_tagPool_template_put_name_direct_content.release();
34     _jspx_tagPool_template_put_name_direct.release();
35     _jspx_tagPool_bean_message_key.release();
36     _jspx_tagPool_bean_write_name.release();
37   }
38
39   public void _jspService(HttpServletRequest request, HttpServletResponse response)
40         throws java.io.IOException JavaDoc, ServletException {
41
42     JspFactory _jspxFactory = null;
43     javax.servlet.jsp.PageContext JavaDoc pageContext = null;
44     HttpSession session = null;
45     ServletContext application = null;
46     ServletConfig config = null;
47     JspWriter out = null;
48     Object JavaDoc page = this;
49     JspWriter _jspx_out = null;
50
51
52     try {
53       _jspxFactory = JspFactory.getDefaultFactory();
54       response.setContentType("text/html;charset=ISO-8859-1");
55       pageContext = _jspxFactory.getPageContext(this, request, response,
56                 null, true, 8192, true);
57       application = pageContext.getServletContext();
58       config = pageContext.getServletConfig();
59       session = pageContext.getSession();
60       out = pageContext.getOut();
61       _jspx_out = out;
62
63       out.write("\r\n");
64       out.write("\r\n");
65       if (_jspx_meth_template_insert_0(pageContext))
66         return;
67       out.write("\r\n");
68     } catch (Throwable JavaDoc t) {
69       out = _jspx_out;
70       if (out != null && out.getBufferSize() != 0)
71         out.clearBuffer();
72       if (pageContext != null) pageContext.handlePageException(t);
73     } finally {
74       if (_jspxFactory != null) _jspxFactory.releasePageContext(pageContext);
75     }
76   }
77
78   private boolean _jspx_meth_template_insert_0(javax.servlet.jsp.PageContext JavaDoc pageContext)
79           throws Throwable JavaDoc {
80     JspWriter out = pageContext.getOut();
81     /* ---- template:insert ---- */
82     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);
83     _jspx_th_template_insert_0.setPageContext(pageContext);
84     _jspx_th_template_insert_0.setParent(null);
85     _jspx_th_template_insert_0.setTemplate("template.jsp");
86     int _jspx_eval_template_insert_0 = _jspx_th_template_insert_0.doStartTag();
87     if (_jspx_eval_template_insert_0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
88       do {
89         out.write("\r\n ");
90         if (_jspx_meth_template_put_0(_jspx_th_template_insert_0, pageContext))
91           return true;
92         out.write("\r\n \r\n ");
93         if (_jspx_meth_template_put_1(_jspx_th_template_insert_0, pageContext))
94           return true;
95         out.write("\r\n \r\n");
96         int evalDoAfterBody = _jspx_th_template_insert_0.doAfterBody();
97         if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
98           break;
99       } while (true);
100     }
101     if (_jspx_th_template_insert_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
102       return true;
103     _jspx_tagPool_template_insert_template.reuse(_jspx_th_template_insert_0);
104     return false;
105   }
106
107   private boolean _jspx_meth_template_put_0(javax.servlet.jsp.tagext.Tag JavaDoc _jspx_th_template_insert_0, javax.servlet.jsp.PageContext JavaDoc pageContext)
108           throws Throwable JavaDoc {
109     JspWriter out = pageContext.getOut();
110     /* ---- template:put ---- */
111     org.apache.struts.taglib.template.PutTag _jspx_th_template_put_0 = (org.apache.struts.taglib.template.PutTag) _jspx_tagPool_template_put_name_direct_content.get(org.apache.struts.taglib.template.PutTag.class);
112     _jspx_th_template_put_0.setPageContext(pageContext);
113     _jspx_th_template_put_0.setParent(_jspx_th_template_insert_0);
114     _jspx_th_template_put_0.setName("label");
115     _jspx_th_template_put_0.setContent("Configuration");
116     _jspx_th_template_put_0.setDirect("true");
117     int _jspx_eval_template_put_0 = _jspx_th_template_put_0.doStartTag();
118     if (_jspx_th_template_put_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
119       return true;
120     _jspx_tagPool_template_put_name_direct_content.reuse(_jspx_th_template_put_0);
121     return false;
122   }
123
124   private boolean _jspx_meth_template_put_1(javax.servlet.jsp.tagext.Tag JavaDoc _jspx_th_template_insert_0, javax.servlet.jsp.PageContext JavaDoc pageContext)
125           throws Throwable JavaDoc {
126     JspWriter out = pageContext.getOut();
127     /* ---- template:put ---- */
128     org.apache.struts.taglib.template.PutTag _jspx_th_template_put_1 = (org.apache.struts.taglib.template.PutTag) _jspx_tagPool_template_put_name_direct.get(org.apache.struts.taglib.template.PutTag.class);
129     _jspx_th_template_put_1.setPageContext(pageContext);
130     _jspx_th_template_put_1.setParent(_jspx_th_template_insert_0);
131     _jspx_th_template_put_1.setName("content");
132     _jspx_th_template_put_1.setDirect("true");
133     int _jspx_eval_template_put_1 = _jspx_th_template_put_1.doStartTag();
134     if (_jspx_eval_template_put_1 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
135       if (_jspx_eval_template_put_1 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
136         javax.servlet.jsp.tagext.BodyContent JavaDoc _bc = pageContext.pushBody();
137         _bc.clear();
138         out = _bc;
139         _jspx_th_template_put_1.setBodyContent(_bc);
140         _jspx_th_template_put_1.doInitBody();
141       }
142       do {
143         out.write(" \r\n\r\n \t");
144         out.write("<img SRC=\"images/config-tile.gif\" align=\"middle\" border=\"0\">");
145         out.write("<span class=\"titre2\">Configuration.");
146         out.write("</span>");
147         out.write("<br>");
148         out.write("<br>\r\n \t\r\n\t");
149         out.write("<u>");
150         if (_jspx_meth_bean_message_0(_jspx_th_template_put_1, pageContext))
151           return true;
152         out.write("</u>");
153         out.write("<br>\r\n ");
154         out.write("<b>");
155         if (_jspx_meth_bean_write_0(_jspx_th_template_put_1, pageContext))
156           return true;
157         out.write("</b>");
158         out.write("<br>");
159         out.write("<br>\r\n");
160         out.write("<!--\r\n\t");
161         out.write("<form action=\"changeDatabase.x\" method=\"post\">\r\n\t\t");
162         out.write("<textarea name=\"content\" style=\"width=450px;height:100px\">");
163         if (_jspx_meth_bean_write_1(_jspx_th_template_put_1, pageContext))
164           return true;
165         out.write("</textarea>");
166         out.write("<br>\r\n \t\t");
167         out.write("<b>valider ");
168         out.write("</b>");
169         out.write("<input align=\"absmiddle\" type=\"image\" SRC=\"images/valide-fade.gif\" style=\"border:0px\" onmouseover=\"this.src='images/valide.jpg'\" onmouseout=\"this.src='images/valide-fade.gif'\"/>\r\n\t");
170         out.write("</form>\r\n-->\r\n\r\n ");
171         int evalDoAfterBody = _jspx_th_template_put_1.doAfterBody();
172         if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
173           break;
174       } while (true);
175       if (_jspx_eval_template_put_1 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE)
176         out = pageContext.popBody();
177     }
178     if (_jspx_th_template_put_1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
179       return true;
180     _jspx_tagPool_template_put_name_direct.reuse(_jspx_th_template_put_1);
181     return false;
182   }
183
184   private boolean _jspx_meth_bean_message_0(javax.servlet.jsp.tagext.Tag JavaDoc _jspx_th_template_put_1, javax.servlet.jsp.PageContext JavaDoc pageContext)
185           throws Throwable JavaDoc {
186     JspWriter out = pageContext.getOut();
187     /* ---- bean:message ---- */
188     org.apache.struts.taglib.bean.MessageTag _jspx_th_bean_message_0 = (org.apache.struts.taglib.bean.MessageTag) _jspx_tagPool_bean_message_key.get(org.apache.struts.taglib.bean.MessageTag.class);
189     _jspx_th_bean_message_0.setPageContext(pageContext);
190     _jspx_th_bean_message_0.setParent(_jspx_th_template_put_1);
191     _jspx_th_bean_message_0.setKey("config.database");
192     int _jspx_eval_bean_message_0 = _jspx_th_bean_message_0.doStartTag();
193     if (_jspx_th_bean_message_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
194       return true;
195     _jspx_tagPool_bean_message_key.reuse(_jspx_th_bean_message_0);
196     return false;
197   }
198
199   private boolean _jspx_meth_bean_write_0(javax.servlet.jsp.tagext.Tag JavaDoc _jspx_th_template_put_1, javax.servlet.jsp.PageContext JavaDoc pageContext)
200           throws Throwable JavaDoc {
201     JspWriter out = pageContext.getOut();
202     /* ---- bean:write ---- */
203     org.apache.struts.taglib.bean.WriteTag _jspx_th_bean_write_0 = (org.apache.struts.taglib.bean.WriteTag) _jspx_tagPool_bean_write_name.get(org.apache.struts.taglib.bean.WriteTag.class);
204     _jspx_th_bean_write_0.setPageContext(pageContext);
205     _jspx_th_bean_write_0.setParent(_jspx_th_template_put_1);
206     _jspx_th_bean_write_0.setName("pathConfig");
207     int _jspx_eval_bean_write_0 = _jspx_th_bean_write_0.doStartTag();
208     if (_jspx_th_bean_write_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
209       return true;
210     _jspx_tagPool_bean_write_name.reuse(_jspx_th_bean_write_0);
211     return false;
212   }
213
214   private boolean _jspx_meth_bean_write_1(javax.servlet.jsp.tagext.Tag JavaDoc _jspx_th_template_put_1, javax.servlet.jsp.PageContext JavaDoc pageContext)
215           throws Throwable JavaDoc {
216     JspWriter out = pageContext.getOut();
217     /* ---- bean:write ---- */
218     org.apache.struts.taglib.bean.WriteTag _jspx_th_bean_write_1 = (org.apache.struts.taglib.bean.WriteTag) _jspx_tagPool_bean_write_name.get(org.apache.struts.taglib.bean.WriteTag.class);
219     _jspx_th_bean_write_1.setPageContext(pageContext);
220     _jspx_th_bean_write_1.setParent(_jspx_th_template_put_1);
221     _jspx_th_bean_write_1.setName("content");
222     int _jspx_eval_bean_write_1 = _jspx_th_bean_write_1.doStartTag();
223     if (_jspx_th_bean_write_1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
224       return true;
225     _jspx_tagPool_bean_write_name.reuse(_jspx_th_bean_write_1);
226     return false;
227   }
228 }
229
Popular Tags