KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > jsp > listGroup_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 listGroup_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_logic_iterate_scope_name_id;
17   private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_bean_write_property_name;
18
19   public listGroup_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_logic_iterate_scope_name_id = new org.apache.jasper.runtime.TagHandlerPool();
24     _jspx_tagPool_bean_write_property_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_logic_iterate_scope_name_id.release();
36     _jspx_tagPool_bean_write_property_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       out.write("\r\n");
66       out.write("\r\n\r\n");
67       /* ---- template:insert ---- */
68       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);
69       _jspx_th_template_insert_0.setPageContext(pageContext);
70       _jspx_th_template_insert_0.setParent(null);
71       _jspx_th_template_insert_0.setTemplate("../template.jsp");
72       int _jspx_eval_template_insert_0 = _jspx_th_template_insert_0.doStartTag();
73       if (_jspx_eval_template_insert_0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
74         do {
75           out.write("\r\n ");
76           if (_jspx_meth_template_put_0(_jspx_th_template_insert_0, pageContext))
77             return;
78           out.write("\r\n ");
79           /* ---- template:put ---- */
80           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);
81           _jspx_th_template_put_1.setPageContext(pageContext);
82           _jspx_th_template_put_1.setParent(_jspx_th_template_insert_0);
83           _jspx_th_template_put_1.setName("content");
84           _jspx_th_template_put_1.setDirect("true");
85           int _jspx_eval_template_put_1 = _jspx_th_template_put_1.doStartTag();
86           if (_jspx_eval_template_put_1 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
87             if (_jspx_eval_template_put_1 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
88               javax.servlet.jsp.tagext.BodyContent JavaDoc _bc = pageContext.pushBody();
89               _bc.clear();
90               out = _bc;
91               _jspx_th_template_put_1.setBodyContent(_bc);
92               _jspx_th_template_put_1.doInitBody();
93             }
94             do {
95               out.write(" \r\n \r\n \t");
96               out.write("<img SRC=\"images/group-tile.gif\" align=\"middle\" border=\"0\">");
97               out.write("<span class=\"titre2\">Liste des objets groupes.");
98               out.write("</span>");
99               out.write("<br>");
100               out.write("<br>\r\n\t\r\n\t");
101               out.write("<table cellpadding=\"0\" cellspacing=\"2\" width=\"100%\">\r\n\t \t");
102               out.write("<tr>\r\n\t\t\t");
103               out.write("<td width=\"20\">");
104               out.write("</td>\r\n\t\t\t");
105               out.write("<td class=\"titre-liste\">&nbsp;&nbsp;");
106               out.write("<b>id");
107               out.write("</b>");
108               out.write("</td>\r\n\t\t\t");
109               out.write("<td width=\"20\">");
110               out.write("</td>\t\t\t\r\n\t\t");
111               out.write("</tr>\r\n\t\t");
112               out.write("<tr>\r\n\t\t\t");
113               out.write("<td height=\"1\" bgcolor=\"#949494\">");
114               out.write("</td>\r\n\t\t\t");
115               out.write("<td height=\"1\" bgcolor=\"#949494\">");
116               out.write("</td>\r\n\t\t\t");
117               out.write("<td height=\"1\" bgcolor=\"#949494\">");
118               out.write("</td>\t\t\r\n\t\t");
119               out.write("</tr>\r\n\t ");
120               /* ---- logic:iterate ---- */
121               org.apache.struts.taglib.logic.IterateTag _jspx_th_logic_iterate_0 = (org.apache.struts.taglib.logic.IterateTag) _jspx_tagPool_logic_iterate_scope_name_id.get(org.apache.struts.taglib.logic.IterateTag.class);
122               _jspx_th_logic_iterate_0.setPageContext(pageContext);
123               _jspx_th_logic_iterate_0.setParent(_jspx_th_template_put_1);
124               _jspx_th_logic_iterate_0.setId("group");
125               _jspx_th_logic_iterate_0.setName("groups");
126               _jspx_th_logic_iterate_0.setScope("request");
127               int _jspx_eval_logic_iterate_0 = _jspx_th_logic_iterate_0.doStartTag();
128               if (_jspx_eval_logic_iterate_0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
129                 java.lang.Object JavaDoc group = null;
130                 if (_jspx_eval_logic_iterate_0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
131                   javax.servlet.jsp.tagext.BodyContent JavaDoc _bc = pageContext.pushBody();
132                   _bc.clear();
133                   out = _bc;
134                   _jspx_th_logic_iterate_0.setBodyContent(_bc);
135                   _jspx_th_logic_iterate_0.doInitBody();
136                   group = (java.lang.Object JavaDoc) pageContext.findAttribute("group");
137                 }
138                 do {
139                   out.write("\r\n\t\t");
140                   out.write("<tr>\r\n\t\t\t");
141                   out.write("<td align=\"center\">");
142                   out.write("<a HREF=\"editGroup.x?id=");
143                   if (_jspx_meth_bean_write_0(_jspx_th_logic_iterate_0, pageContext))
144                     return;
145                   out.write("\">");
146                   out.write("<img SRC=\"images/puce.gif\" align=\"middle\" border=\"0\">");
147                   out.write("</a>");
148                   out.write("</td>\r\n\t\t\t");
149                   out.write("<td class=\"texte\">&nbsp;&nbsp;");
150                   out.write("<a HREF=\"editGroup.x?id=");
151                   if (_jspx_meth_bean_write_1(_jspx_th_logic_iterate_0, pageContext))
152                     return;
153                   out.write("\">");
154                   if (_jspx_meth_bean_write_2(_jspx_th_logic_iterate_0, pageContext))
155                     return;
156                   out.write("</a>&nbsp;&nbsp;");
157                   out.write("</td>\r\n\t\t\t");
158                   out.write("<td align=\"center\">");
159                   out.write("<a HREF=\"delGroup.x?id=");
160                   if (_jspx_meth_bean_write_3(_jspx_th_logic_iterate_0, pageContext))
161                     return;
162                   out.write("\">");
163                   out.write("<img SRC=\"images/croix-fade.gif\" onmouseover=\"this.src='images/croix.gif'\" onmouseout=\"this.src='images/croix-fade.gif'\" align=\"middle\" border=\"0\">");
164                   out.write("</a>");
165                   out.write("</td>\t\t\r\n\t\t");
166                   out.write("</tr>\r\n\t\t");
167                   out.write("<tr>\r\n\t\t\t");
168                   out.write("<td height=\"1\" bgcolor=\"#949494\">");
169                   out.write("</td>\r\n\t\t\t");
170                   out.write("<td height=\"1\" bgcolor=\"#949494\">");
171                   out.write("</td>\r\n\t\t\t");
172                   out.write("<td height=\"1\" bgcolor=\"#949494\">");
173                   out.write("</td>\t\t\t\t\r\n\t\t");
174                   out.write("</tr>\r\n\t ");
175                   int evalDoAfterBody = _jspx_th_logic_iterate_0.doAfterBody();
176                   group = (java.lang.Object JavaDoc) pageContext.findAttribute("group");
177                   if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
178                     break;
179                 } while (true);
180                 if (_jspx_eval_logic_iterate_0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE)
181                   out = pageContext.popBody();
182               }
183               if (_jspx_th_logic_iterate_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
184                 return;
185               _jspx_tagPool_logic_iterate_scope_name_id.reuse(_jspx_th_logic_iterate_0);
186               out.write("\r\n\t ");
187               out.write("</table>\r\n\t ");
188               out.write("<br>");
189               out.write("<br>\r\n\t ");
190               out.write("<img SRC=\"images/etoile.gif\" align=\"absmiddle\">&nbsp;&nbsp;");
191               out.write("<a HREF=\"addGroup.x\">créer un nouvel objet");
192               out.write("</a>.\r\n\t \r\n ");
193               int evalDoAfterBody = _jspx_th_template_put_1.doAfterBody();
194               if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
195                 break;
196             } while (true);
197             if (_jspx_eval_template_put_1 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE)
198               out = pageContext.popBody();
199           }
200           if (_jspx_th_template_put_1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
201             return;
202           _jspx_tagPool_template_put_name_direct.reuse(_jspx_th_template_put_1);
203           out.write("\r\n");
204           int evalDoAfterBody = _jspx_th_template_insert_0.doAfterBody();
205           if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
206             break;
207         } while (true);
208       }
209       if (_jspx_th_template_insert_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
210         return;
211       _jspx_tagPool_template_insert_template.reuse(_jspx_th_template_insert_0);
212       out.write("\r\n");
213     } catch (Throwable JavaDoc t) {
214       out = _jspx_out;
215       if (out != null && out.getBufferSize() != 0)
216         out.clearBuffer();
217       if (pageContext != null) pageContext.handlePageException(t);
218     } finally {
219       if (_jspxFactory != null) _jspxFactory.releasePageContext(pageContext);
220     }
221   }
222
223   private boolean _jspx_meth_template_put_0(javax.servlet.jsp.tagext.Tag JavaDoc _jspx_th_template_insert_0, javax.servlet.jsp.PageContext JavaDoc pageContext)
224           throws Throwable JavaDoc {
225     JspWriter out = pageContext.getOut();
226     /* ---- template:put ---- */
227     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);
228     _jspx_th_template_put_0.setPageContext(pageContext);
229     _jspx_th_template_put_0.setParent(_jspx_th_template_insert_0);
230     _jspx_th_template_put_0.setName("label");
231     _jspx_th_template_put_0.setContent("Groupes");
232     _jspx_th_template_put_0.setDirect("true");
233     int _jspx_eval_template_put_0 = _jspx_th_template_put_0.doStartTag();
234     if (_jspx_th_template_put_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
235       return true;
236     _jspx_tagPool_template_put_name_direct_content.reuse(_jspx_th_template_put_0);
237     return false;
238   }
239
240   private boolean _jspx_meth_bean_write_0(javax.servlet.jsp.tagext.Tag JavaDoc _jspx_th_logic_iterate_0, javax.servlet.jsp.PageContext JavaDoc pageContext)
241           throws Throwable JavaDoc {
242     JspWriter out = pageContext.getOut();
243     /* ---- bean:write ---- */
244     org.apache.struts.taglib.bean.WriteTag _jspx_th_bean_write_0 = (org.apache.struts.taglib.bean.WriteTag) _jspx_tagPool_bean_write_property_name.get(org.apache.struts.taglib.bean.WriteTag.class);
245     _jspx_th_bean_write_0.setPageContext(pageContext);
246     _jspx_th_bean_write_0.setParent(_jspx_th_logic_iterate_0);
247     _jspx_th_bean_write_0.setName("group");
248     _jspx_th_bean_write_0.setProperty("id");
249     int _jspx_eval_bean_write_0 = _jspx_th_bean_write_0.doStartTag();
250     if (_jspx_th_bean_write_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
251       return true;
252     _jspx_tagPool_bean_write_property_name.reuse(_jspx_th_bean_write_0);
253     return false;
254   }
255
256   private boolean _jspx_meth_bean_write_1(javax.servlet.jsp.tagext.Tag JavaDoc _jspx_th_logic_iterate_0, javax.servlet.jsp.PageContext JavaDoc pageContext)
257           throws Throwable JavaDoc {
258     JspWriter out = pageContext.getOut();
259     /* ---- bean:write ---- */
260     org.apache.struts.taglib.bean.WriteTag _jspx_th_bean_write_1 = (org.apache.struts.taglib.bean.WriteTag) _jspx_tagPool_bean_write_property_name.get(org.apache.struts.taglib.bean.WriteTag.class);
261     _jspx_th_bean_write_1.setPageContext(pageContext);
262     _jspx_th_bean_write_1.setParent(_jspx_th_logic_iterate_0);
263     _jspx_th_bean_write_1.setName("group");
264     _jspx_th_bean_write_1.setProperty("id");
265     int _jspx_eval_bean_write_1 = _jspx_th_bean_write_1.doStartTag();
266     if (_jspx_th_bean_write_1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
267       return true;
268     _jspx_tagPool_bean_write_property_name.reuse(_jspx_th_bean_write_1);
269     return false;
270   }
271
272   private boolean _jspx_meth_bean_write_2(javax.servlet.jsp.tagext.Tag JavaDoc _jspx_th_logic_iterate_0, javax.servlet.jsp.PageContext JavaDoc pageContext)
273           throws Throwable JavaDoc {
274     JspWriter out = pageContext.getOut();
275     /* ---- bean:write ---- */
276     org.apache.struts.taglib.bean.WriteTag _jspx_th_bean_write_2 = (org.apache.struts.taglib.bean.WriteTag) _jspx_tagPool_bean_write_property_name.get(org.apache.struts.taglib.bean.WriteTag.class);
277     _jspx_th_bean_write_2.setPageContext(pageContext);
278     _jspx_th_bean_write_2.setParent(_jspx_th_logic_iterate_0);
279     _jspx_th_bean_write_2.setName("group");
280     _jspx_th_bean_write_2.setProperty("id");
281     int _jspx_eval_bean_write_2 = _jspx_th_bean_write_2.doStartTag();
282     if (_jspx_th_bean_write_2.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
283       return true;
284     _jspx_tagPool_bean_write_property_name.reuse(_jspx_th_bean_write_2);
285     return false;
286   }
287
288   private boolean _jspx_meth_bean_write_3(javax.servlet.jsp.tagext.Tag JavaDoc _jspx_th_logic_iterate_0, javax.servlet.jsp.PageContext JavaDoc pageContext)
289           throws Throwable JavaDoc {
290     JspWriter out = pageContext.getOut();
291     /* ---- bean:write ---- */
292     org.apache.struts.taglib.bean.WriteTag _jspx_th_bean_write_3 = (org.apache.struts.taglib.bean.WriteTag) _jspx_tagPool_bean_write_property_name.get(org.apache.struts.taglib.bean.WriteTag.class);
293     _jspx_th_bean_write_3.setPageContext(pageContext);
294     _jspx_th_bean_write_3.setParent(_jspx_th_logic_iterate_0);
295     _jspx_th_bean_write_3.setName("group");
296     _jspx_th_bean_write_3.setProperty("id");
297     int _jspx_eval_bean_write_3 = _jspx_th_bean_write_3.doStartTag();
298     if (_jspx_th_bean_write_3.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
299       return true;
300     _jspx_tagPool_bean_write_property_name.reuse(_jspx_th_bean_write_3);
301     return false;
302   }
303 }
304
Popular Tags