KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > jsp > tree_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 tree_jsp extends HttpJspBase {
9
10
11   private static java.util.Vector JavaDoc _jspx_includes;
12
13   private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_controls_tree_tree_styleUnselected_styleSelected_style_images_action;
14   private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_bean_message_key;
15
16   public tree_jsp() {
17     _jspx_tagPool_controls_tree_tree_styleUnselected_styleSelected_style_images_action = new org.apache.jasper.runtime.TagHandlerPool();
18     _jspx_tagPool_bean_message_key = new org.apache.jasper.runtime.TagHandlerPool();
19   }
20
21   public java.util.List JavaDoc getIncludes() {
22     return _jspx_includes;
23   }
24
25   public void _jspDestroy() {
26     _jspx_tagPool_controls_tree_tree_styleUnselected_styleSelected_style_images_action.release();
27     _jspx_tagPool_bean_message_key.release();
28   }
29
30   public void _jspService(HttpServletRequest request, HttpServletResponse response)
31         throws java.io.IOException JavaDoc, ServletException {
32
33     JspFactory _jspxFactory = null;
34     javax.servlet.jsp.PageContext JavaDoc pageContext = null;
35     HttpSession session = null;
36     ServletContext application = null;
37     ServletConfig config = null;
38     JspWriter out = null;
39     Object JavaDoc page = this;
40     JspWriter _jspx_out = null;
41
42
43     try {
44       _jspxFactory = JspFactory.getDefaultFactory();
45       response.setContentType("text/html;charset=ISO-8859-1");
46       pageContext = _jspxFactory.getPageContext(this, request, response,
47                 null, true, 8192, true);
48       application = pageContext.getServletContext();
49       config = pageContext.getServletConfig();
50       session = pageContext.getSession();
51       out = pageContext.getOut();
52       _jspx_out = out;
53
54       out.write("<!-- Standard Struts Entries -->\r\n\r\n");
55       out.write("\r\n");
56       out.write("\r\n");
57       out.write("\r\n");
58       out.write("\r\n");
59       out.write("\r\n\r\n");
60       out.write("<html>\r\n\r\n");
61       out.write("<!-- Standard Content -->\r\n\r\n");
62       out.write("<head>\r\n ");
63       out.write("<title>tree");
64       out.write("</title> \r\n ");
65       out.write("<link rel=\"stylesheet\" type=\"text/css\" HREF=\"styles/tree.css\">\r\n ");
66       out.write("<link rel=\"stylesheet\" type=\"text/css\" HREF=\"styles/global.css\">\r\n");
67       out.write("</head>\r\n\r\n");
68       out.write("<!-- Body -->\r\n\r\n");
69       out.write("<body bgcolor=\"white\" style=\"cursor:default\">\r\n\r\n");
70       out.write("<!-- Tree Component -->\r\n");
71       out.write("<table cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" height=\"100%\">\r\n\t");
72       out.write("<tr>\r\n\t\t");
73       out.write("<td valign=\"top\">\r\n\t\t\t");
74       if (_jspx_meth_controls_tree_0(pageContext))
75         return;
76       out.write("\r\n\t\t");
77       out.write("</td>\r\n\t");
78       out.write("</tr>\r\n\t");
79       out.write("<tr>\r\n\t\t");
80       out.write("<td height=\"10\">");
81       out.write("<a HREF=\"setUpTree.x?clean=yes\">(");
82       if (_jspx_meth_bean_message_0(pageContext))
83         return;
84       out.write(")");
85       out.write("</a>");
86       out.write("</td>\r\n\t");
87       out.write("</tr>\r\n");
88       out.write("</table> \r\n\r\n");
89       out.write("</body>\r\n\r\n");
90       out.write("<!-- Standard Footer -->\r\n\r\n");
91       out.write("</html>\r\n");
92     } catch (Throwable JavaDoc t) {
93       out = _jspx_out;
94       if (out != null && out.getBufferSize() != 0)
95         out.clearBuffer();
96       if (pageContext != null) pageContext.handlePageException(t);
97     } finally {
98       if (_jspxFactory != null) _jspxFactory.releasePageContext(pageContext);
99     }
100   }
101
102   private boolean _jspx_meth_controls_tree_0(javax.servlet.jsp.PageContext JavaDoc pageContext)
103           throws Throwable JavaDoc {
104     JspWriter out = pageContext.getOut();
105     /* ---- controls:tree ---- */
106     org.nextime.ion.backoffice.tree.TreeControlTag _jspx_th_controls_tree_0 = (org.nextime.ion.backoffice.tree.TreeControlTag) _jspx_tagPool_controls_tree_tree_styleUnselected_styleSelected_style_images_action.get(org.nextime.ion.backoffice.tree.TreeControlTag.class);
107     _jspx_th_controls_tree_0.setPageContext(pageContext);
108     _jspx_th_controls_tree_0.setParent(null);
109     _jspx_th_controls_tree_0.setTree("treeControlTest");
110     _jspx_th_controls_tree_0.setAction("treeControl.x?tree=${name}");
111     _jspx_th_controls_tree_0.setStyle("tree-control");
112     _jspx_th_controls_tree_0.setStyleSelected("tree-text-selected");
113     _jspx_th_controls_tree_0.setStyleUnselected("tree-text");
114     _jspx_th_controls_tree_0.setImages("images");
115     int _jspx_eval_controls_tree_0 = _jspx_th_controls_tree_0.doStartTag();
116     if (_jspx_th_controls_tree_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
117       return true;
118     _jspx_tagPool_controls_tree_tree_styleUnselected_styleSelected_style_images_action.reuse(_jspx_th_controls_tree_0);
119     return false;
120   }
121
122   private boolean _jspx_meth_bean_message_0(javax.servlet.jsp.PageContext JavaDoc pageContext)
123           throws Throwable JavaDoc {
124     JspWriter out = pageContext.getOut();
125     /* ---- bean:message ---- */
126     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);
127     _jspx_th_bean_message_0.setPageContext(pageContext);
128     _jspx_th_bean_message_0.setParent(null);
129     _jspx_th_bean_message_0.setKey("content.tree.refresh");
130     int _jspx_eval_bean_message_0 = _jspx_th_bean_message_0.doStartTag();
131     if (_jspx_th_bean_message_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
132       return true;
133     _jspx_tagPool_bean_message_key.reuse(_jspx_th_bean_message_0);
134     return false;
135   }
136 }
137
Popular Tags