001 package org.apache.jsp.simpletag; 002 003 import javax.servlet.*; 004 import javax.servlet.http.*; 005 import javax.servlet.jsp.*; 006 007 public final class foo_jsp extends org.apache.jasper.runtime.HttpJspBase 008 implements org.apache.jasper.runtime.JspSourceDependent { 009 010 private static java.util.Vector _jspx_dependants; 011 012 static { Rate013 _jspx_dependants = new java.util.Vector(1); 014 _jspx_dependants.add("/WEB-INF/jsp/example-taglib.tld"); 015 } 016 017 private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_eg_foo_att3_att2_att1; 018 private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_eg_log; 019 private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_eg_log_toBrowser; 020 021 public java.util.List getDependants() { 022 return _jspx_dependants; 023 } 024 025 public void _jspInit() { 026 _jspx_tagPool_eg_foo_att3_att2_att1 = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig()); 027 _jspx_tagPool_eg_log = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig()); 028 _jspx_tagPool_eg_log_toBrowser = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig()); 029 } 030 031 public void _jspDestroy() { 032 _jspx_tagPool_eg_foo_att3_att2_att1.release(); 033 _jspx_tagPool_eg_log.release(); 034 _jspx_tagPool_eg_log_toBrowser.release(); 035 } 036 037 public void _jspService(HttpServletRequest request, HttpServletResponse response) 038 throws java.io.IOException, ServletException { 039 040 JspFactory _jspxFactory = null; 041 PageContext pageContext = null; 042 HttpSession session = null; 043 ServletContext application = null; 044 ServletConfig config = null; 045 JspWriter out = null; 046 Object page = this; 047 JspWriter _jspx_out = null; 048 PageContext _jspx_page_context = null; 049 050 051 try { 052 _jspxFactory = JspFactory.getDefaultFactory(); 053 response.setContentType("text/html"); 054 pageContext = _jspxFactory.getPageContext(this, request, response, 055 null, true, 8192, true); 056 _jspx_page_context = pageContext; 057 application = pageContext.getServletContext(); 058 config = pageContext.getServletConfig(); 059 session = pageContext.getSession(); 060 out = pageContext.getOut(); 061 _jspx_out = out; 062 063 out.write("<html>\r\n<!--\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<body>\r\n\r\n\r\nRadio stations that rock:\r\n\r\n<ul>\r\n"); 064 // eg:foo 065 examples.FooTag _jspx_th_eg_foo_0 = (examples.FooTag) _jspx_tagPool_eg_foo_att3_att2_att1.get(examples.FooTag.class); 066 _jspx_th_eg_foo_0.setPageContext(_jspx_page_context); 067 _jspx_th_eg_foo_0.setParent(null); 068 _jspx_th_eg_foo_0.setAtt1("98.5"); 069 _jspx_th_eg_foo_0.setAtt2("92.3"); 070 _jspx_th_eg_foo_0.setAtt3("107.7"); 071 int _jspx_eval_eg_foo_0 = _jspx_th_eg_foo_0.doStartTag(); 072 if (_jspx_eval_eg_foo_0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) { 073 String member = null; 074 if (_jspx_eval_eg_foo_0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) { 075 out = _jspx_page_context.pushBody(); 076 _jspx_th_eg_foo_0.setBodyContent((javax.servlet.jsp.tagext.BodyContent) out); 077 _jspx_th_eg_foo_0.doInitBody(); 078 } 079 member = (String) _jspx_page_context.findAttribute("member"); 080 do { 081 out.write("\r\n<li>"); 082 out.print( member ); 083 out.write("</li>\r\n"); 084 int evalDoAfterBody = _jspx_th_eg_foo_0.doAfterBody(); 085 member = (String) _jspx_page_context.findAttribute("member"); 086 if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN) 087 break; 088 } while (true); 089 if (_jspx_eval_eg_foo_0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) 090 out = _jspx_page_context.popBody(); 091 } 092 if (_jspx_th_eg_foo_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) 093 return; 094 _jspx_tagPool_eg_foo_att3_att2_att1.reuse(_jspx_th_eg_foo_0); 095 out.write("\r\n</ul>\r\n\r\n"); 096 if (_jspx_meth_eg_log_0(_jspx_page_context)) 097 return; 098 out.write("\r\n\r\n"); 099 if (_jspx_meth_eg_log_1(_jspx_page_context)) 100 return; 101 out.write("\r\n\r\n</body>\r\n</html>\r\n"); 102 } catch (Throwable t) { 103 if (!(t instanceof SkipPageException)){ 104 out = _jspx_out; 105 if (out != null && out.getBufferSize() != 0) 106 out.clearBuffer(); 107 if (_jspx_page_context != null) _jspx_page_context.handlePageException(t); 108 } 109 } finally { 110 if (_jspxFactory != null) _jspxFactory.releasePageContext(_jspx_page_context); 111 } 112 } 113 114 private boolean _jspx_meth_eg_log_0(PageContext _jspx_page_context) 115 throws Throwable { 116 PageContext pageContext = _jspx_page_context; 117 JspWriter out = _jspx_page_context.getOut(); 118 // eg:log 119 examples.LogTag _jspx_th_eg_log_0 = (examples.LogTag) _jspx_tagPool_eg_log.get(examples.LogTag.class); 120 _jspx_th_eg_log_0.setPageContext(_jspx_page_context); 121 _jspx_th_eg_log_0.setParent(null); 122 int _jspx_eval_eg_log_0 = _jspx_th_eg_log_0.doStartTag(); 123 if (_jspx_eval_eg_log_0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) { 124 if (_jspx_eval_eg_log_0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) { 125 out = _jspx_page_context.pushBody(); 126 _jspx_th_eg_log_0.setBodyContent((javax.servlet.jsp.tagext.BodyContent) out); 127 _jspx_th_eg_log_0.doInitBody(); 128 } 129 do { 130 out.write("\r\nDid you see me on the stderr window?\r\n"); 131 int evalDoAfterBody = _jspx_th_eg_log_0.doAfterBody(); 132 if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN) 133 break; 134 } while (true); 135 if (_jspx_eval_eg_log_0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) 136 out = _jspx_page_context.popBody(); 137 } 138 if (_jspx_th_eg_log_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) 139 return true; 140 _jspx_tagPool_eg_log.reuse(_jspx_th_eg_log_0); 141 return false; 142 } 143 144 private boolean _jspx_meth_eg_log_1(PageContext _jspx_page_context) 145 throws Throwable { 146 PageContext pageContext = _jspx_page_context; 147 JspWriter out = _jspx_page_context.getOut(); 148 // eg:log 149 examples.LogTag _jspx_th_eg_log_1 = (examples.LogTag) _jspx_tagPool_eg_log_toBrowser.get(examples.LogTag.class); 150 _jspx_th_eg_log_1.setPageContext(_jspx_page_context); 151 _jspx_th_eg_log_1.setParent(null); 152 _jspx_th_eg_log_1.setToBrowser("true"); 153 int _jspx_eval_eg_log_1 = _jspx_th_eg_log_1.doStartTag(); 154 if (_jspx_eval_eg_log_1 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) { 155 if (_jspx_eval_eg_log_1 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) { 156 out = _jspx_page_context.pushBody(); 157 _jspx_th_eg_log_1.setBodyContent((javax.servlet.jsp.tagext.BodyContent) out); 158 _jspx_th_eg_log_1.doInitBody(); 159 } 160 do { 161 out.write("\r\nDid you see me on the browser window as well?\r\n"); 162 int evalDoAfterBody = _jspx_th_eg_log_1.doAfterBody(); 163 if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN) 164 break; 165 } while (true); 166 if (_jspx_eval_eg_log_1 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) 167 out = _jspx_page_context.popBody(); 168 } 169 if (_jspx_th_eg_log_1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) 170 return true; 171 _jspx_tagPool_eg_log_toBrowser.reuse(_jspx_th_eg_log_1); 172 return false; 173 } 174 }