001 package 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.List _jspx_dependants;
011
012 private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_eg_foo_att3_att2_att1;
013 private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_eg_log;
014 private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_eg_log_toBrowser;
015
016 public Object getDependants() {
017 return _jspx_dependants;
018 }
019
020 public void _jspInit() {
021 _jspx_tagPool_eg_foo_att3_att2_att1 = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
022 _jspx_tagPool_eg_log = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
023 _jspx_tagPool_eg_log_toBrowser = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
024 }
025
026 public void _jspDestroy() {
027 _jspx_tagPool_eg_foo_att3_att2_att1.release();
028 _jspx_tagPool_eg_log.release();
029 _jspx_tagPool_eg_log_toBrowser.release();
030 }
031
032 public void _jspService(HttpServletRequest request, HttpServletResponse response)
033 throws java.io.IOException, ServletException {
034
035 JspFactory _jspxFactory = null;
036 PageContext pageContext = null;
037 HttpSession session = null;
038 ServletContext application = null;
039 ServletConfig config = null;
040 JspWriter out = null;
041 Object page = this;
042 JspWriter _jspx_out = null;
043 PageContext _jspx_page_context = null;
044
045
046 try {
047 _jspxFactory = JspFactory.getDefaultFactory();
048 response.setContentType("text/html");
049 pageContext = _jspxFactory.getPageContext(this, request, response,
050 null, true, 8192, true);
051 _jspx_page_context = pageContext;
052 application = pageContext.getServletContext();
053 config = pageContext.getServletConfig();
054 session = pageContext.getSession();
055 out = pageContext.getOut();
056 _jspx_out = out;
057
058 out.write("<html>\n<!--\n Licensed to the Apache Software Foundation (ASF) under one or more\n contributor license agreements. See the NOTICE file distributed with\n this work for additional information regarding copyright ownership.\n The ASF licenses this file to You under the Apache License, Version 2.0\n (the \"License\"); you may not use this file except in compliance with\n the License. You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n-->\n<body>\n\n\nRadio stations that rock:\n\n<ul>\n");
059 // eg:foo
060 examples.FooTag _jspx_th_eg_foo_0 = (examples.FooTag) _jspx_tagPool_eg_foo_att3_att2_att1.get(examples.FooTag.class);
061 _jspx_th_eg_foo_0.setPageContext(_jspx_page_context);
062 _jspx_th_eg_foo_0.setParent(null);
063 _jspx_th_eg_foo_0.setAtt1("98.5");
064 _jspx_th_eg_foo_0.setAtt2("92.3");
065 _jspx_th_eg_foo_0.setAtt3("107.7");
066 int _jspx_eval_eg_foo_0 = _jspx_th_eg_foo_0.doStartTag();
067 if (_jspx_eval_eg_foo_0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
068 String member = null;
069 if (_jspx_eval_eg_foo_0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
070 out = _jspx_page_context.pushBody();
071 _jspx_th_eg_foo_0.setBodyContent((javax.servlet.jsp.tagext.BodyContent) out);
072 _jspx_th_eg_foo_0.doInitBody();
073 }
074 member = (String) _jspx_page_context.findAttribute("member");
075 do {
076 out.write("\n<li>");
077 out.print( member );
078 out.write("</li>\n");
079 int evalDoAfterBody = _jspx_th_eg_foo_0.doAfterBody();
080 member = (String) _jspx_page_context.findAttribute("member");
081 if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
082 break;
083 } while (true);
084 if (_jspx_eval_eg_foo_0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE)
085 out = _jspx_page_context.popBody();
086 }
087 if (_jspx_th_eg_foo_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
088 _jspx_tagPool_eg_foo_att3_att2_att1.reuse(_jspx_th_eg_foo_0);
089 return;
090 }
091 _jspx_tagPool_eg_foo_att3_att2_att1.reuse(_jspx_th_eg_foo_0);
092 out.write("\n</ul>\n\n");
093 if (_jspx_meth_eg_log_0(_jspx_page_context))
094 return;
095 out.write('\n');
096 out.write('\n');
097 if (_jspx_meth_eg_log_1(_jspx_page_context))
098 return;
099 out.write("\n\n</body>\n</html>\n");
100 } catch (Throwable t) {
101 if (!(t instanceof SkipPageException)){
102 out = _jspx_out;
103 if (out != null && out.getBufferSize() != 0)
104 out.clearBuffer();
105 if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
106 }
107 } finally {
108 if (_jspxFactory != null) _jspxFactory.releasePageContext(_jspx_page_context);
109 }
110 }
111
112 private boolean _jspx_meth_eg_log_0(PageContext _jspx_page_context)
113 throws Throwable {
114 PageContext pageContext = _jspx_page_context;
115 JspWriter out = _jspx_page_context.getOut();
116 // eg:log
117 examples.LogTag _jspx_th_eg_log_0 = (examples.LogTag) _jspx_tagPool_eg_log.get(examples.LogTag.class);
118 _jspx_th_eg_log_0.setPageContext(_jspx_page_context);
119 _jspx_th_eg_log_0.setParent(null);
120 int _jspx_eval_eg_log_0 = _jspx_th_eg_log_0.doStartTag();
121 if (_jspx_eval_eg_log_0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
122 if (_jspx_eval_eg_log_0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
123 out = _jspx_page_context.pushBody();
124 _jspx_th_eg_log_0.setBodyContent((javax.servlet.jsp.tagext.BodyContent) out);
125 _jspx_th_eg_log_0.doInitBody();
126 }
127 do {
128 out.write("\nDid you see me on the stderr window?\n");
129 int evalDoAfterBody = _jspx_th_eg_log_0.doAfterBody();
130 if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
131 break;
132 } while (true);
133 if (_jspx_eval_eg_log_0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE)
134 out = _jspx_page_context.popBody();
135 }
136 if (_jspx_th_eg_log_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
137 _jspx_tagPool_eg_log.reuse(_jspx_th_eg_log_0);
138 return true;
139 }
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("\nDid you see me on the browser window as well?\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 _jspx_tagPool_eg_log_toBrowser.reuse(_jspx_th_eg_log_1);
171 return true;
172 }
173 _jspx_tagPool_eg_log_toBrowser.reuse(_jspx_th_eg_log_1);
174 return false;
175 }
176 }