home *** CD-ROM | disk | FTP | other *** search
Wrap
package org.apache.jsp.jsp2.tagfiles; import java.io.IOException; import java.util.List; import java.util.Vector; import javax.servlet.ServletConfig; import javax.servlet.ServletContext; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpSession; import javax.servlet.jsp.JspFactory; import javax.servlet.jsp.JspWriter; import javax.servlet.jsp.PageContext; import javax.servlet.jsp.SkipPageException; import javax.servlet.jsp.tagext.JspTag; import org.apache.jasper.runtime.HttpJspBase; import org.apache.jasper.runtime.JspSourceDependent; import org.apache.jsp.tag.web.panel_tag; public final class panel_jsp extends HttpJspBase implements JspSourceDependent { private static Vector _jspx_dependants = new Vector(1); public List getDependants() { return _jspx_dependants; } public void _jspService(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { JspFactory _jspxFactory = null; PageContext pageContext = null; HttpSession session = null; ServletContext application = null; ServletConfig config = null; JspWriter out = null; JspWriter _jspx_out = null; PageContext _jspx_page_context = null; try { _jspxFactory = JspFactory.getDefaultFactory(); response.setContentType("text/html"); pageContext = _jspxFactory.getPageContext(this, request, response, (String)null, true, 8192, true); _jspx_page_context = pageContext; application = pageContext.getServletContext(); config = pageContext.getServletConfig(); session = pageContext.getSession(); out = pageContext.getOut(); out.write("<!--\r\n Copyright 2004 The Apache Software Foundation\r\n\r\n Licensed under the Apache License, Version 2.0 (the \"License\");\r\n you may not use this file except in compliance with the License.\r\n You may obtain a copy of the License at\r\n\r\n http://www.apache.org/licenses/LICENSE-2.0\r\n\r\n Unless required by applicable law or agreed to in writing, software\r\n distributed under the License is distributed on an \"AS IS\" BASIS,\r\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n See the License for the specific language governing permissions and\r\n limitations under the License.\r\n-->\r\n\r\n<html>\r\n <head>\r\n <title>JSP 2.0 Examples - Panels using Tag Files</title>\r\n </head>\r\n <body>\r\n <h1>JSP 2.0 Examples - Panels using Tag Files</h1>\r\n <hr>\r\n <p>This JSP page invokes a custom tag that draws a \r\n panel around the contents of the tag body. Normally, such a tag \r\n implementation would require a Java class with many println() statements,\r\n outputting HTML. Instead, we can use a .tag file as a template,\r\n"); out.write(" and we don't need to write a single line of Java or even a TLD!</p>\r\n <hr>\r\n <table border=\"0\">\r\n <tr valign=\"top\">\r\n <td>\r\n "); if (!this._jspx_meth_tags_panel_0(pageContext)) { out.write("\r\n </td>\r\n <td>\r\n "); if (this._jspx_meth_tags_panel_1(pageContext)) { return; } out.write("\r\n </td>\r\n <td>\r\n "); if (this._jspx_meth_tags_panel_2(pageContext)) { return; } out.write("\r\n </td>\r\n </tr>\r\n </table>\r\n </body>\r\n</html>\r\n"); return; } } catch (Throwable t) { if (!(t instanceof SkipPageException)) { if (_jspx_out != null && _jspx_out.getBufferSize() != 0) { _jspx_out.clearBuffer(); } if (_jspx_page_context != null) { _jspx_page_context.handlePageException(t); return; } } return; } finally { if (_jspxFactory != null) { _jspxFactory.releasePageContext(_jspx_page_context); } } } private boolean _jspx_meth_tags_panel_0(PageContext _jspx_page_context) throws Throwable { JspWriter out = _jspx_page_context.getOut(); panel_tag _jspx_th_tags_panel_0 = new panel_tag(); _jspx_th_tags_panel_0.setJspContext(_jspx_page_context); _jspx_th_tags_panel_0.setColor("#ff8080"); _jspx_th_tags_panel_0.setBgcolor("#ffc0c0"); _jspx_th_tags_panel_0.setTitle("Panel 1"); _jspx_th_tags_panel_0.setJspBody(new panel_jspHelper(this, 0, _jspx_page_context, _jspx_th_tags_panel_0, (int[])null)); _jspx_th_tags_panel_0.doTag(); return false; } private boolean _jspx_meth_tags_panel_1(PageContext _jspx_page_context) throws Throwable { JspWriter out = _jspx_page_context.getOut(); panel_tag _jspx_th_tags_panel_1 = new panel_tag(); _jspx_th_tags_panel_1.setJspContext(_jspx_page_context); _jspx_th_tags_panel_1.setColor("#80ff80"); _jspx_th_tags_panel_1.setBgcolor("#c0ffc0"); _jspx_th_tags_panel_1.setTitle("Panel 2"); _jspx_th_tags_panel_1.setJspBody(new panel_jspHelper(this, 1, _jspx_page_context, _jspx_th_tags_panel_1, (int[])null)); _jspx_th_tags_panel_1.doTag(); return false; } private boolean _jspx_meth_tags_panel_2(PageContext _jspx_page_context) throws Throwable { JspWriter out = _jspx_page_context.getOut(); panel_tag _jspx_th_tags_panel_2 = new panel_tag(); _jspx_th_tags_panel_2.setJspContext(_jspx_page_context); _jspx_th_tags_panel_2.setColor("#8080ff"); _jspx_th_tags_panel_2.setBgcolor("#c0c0ff"); _jspx_th_tags_panel_2.setTitle("Panel 3"); _jspx_th_tags_panel_2.setJspBody(new panel_jspHelper(this, 2, _jspx_page_context, _jspx_th_tags_panel_2, (int[])null)); _jspx_th_tags_panel_2.doTag(); return false; } private boolean _jspx_meth_tags_panel_3(JspTag _jspx_parent, PageContext _jspx_page_context) throws Throwable { JspWriter out = _jspx_page_context.getOut(); panel_tag _jspx_th_tags_panel_3 = new panel_tag(); _jspx_th_tags_panel_3.setJspContext(_jspx_page_context); _jspx_th_tags_panel_3.setParent(_jspx_parent); _jspx_th_tags_panel_3.setColor("#ff80ff"); _jspx_th_tags_panel_3.setBgcolor("#ffc0ff"); _jspx_th_tags_panel_3.setTitle("Inner"); _jspx_th_tags_panel_3.setJspBody(new panel_jspHelper(this, 3, _jspx_page_context, _jspx_th_tags_panel_3, (int[])null)); _jspx_th_tags_panel_3.doTag(); return false; } // $FF: synthetic method static boolean access$000(panel_jsp x0, JspTag x1, PageContext x2) throws Throwable { return x0._jspx_meth_tags_panel_3(x1, x2); } static { _jspx_dependants.add("/WEB-INF/tags/panel.tag"); } }