001 package org.apache.jsp.tag.web;
002
003 import javax.servlet.*;
004 import javax.servlet.http.*;
005 import javax.servlet.jsp.*;
006
007 public final class displayProducts_tag
008 extends javax.servlet.jsp.tagext.SimpleTagSupport
009 implements org.apache.jasper.runtime.JspSourceDependent {
010
011
012 private static java.util.List _jspx_dependants;
013
014 private JspContext jspContext;
015 private java.io.Writer _jspx_sout;
016 private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_c_set_var_value_nobody;
017
018 public void setJspContext(JspContext ctx) {
019 super.setJspContext(ctx);
020 java.util.ArrayList _jspx_nested = null;
021 java.util.ArrayList _jspx_at_begin = null;
022 java.util.ArrayList _jspx_at_end = null;
023 _jspx_nested = new java.util.ArrayList();
024 _jspx_nested.add("name");
025 _jspx_nested.add("price");
026 _jspx_nested.add("origPrice");
027 _jspx_nested.add("salePrice");
028 this.jspContext = new org.apache.jasper.runtime.JspContextWrapper(ctx, _jspx_nested, _jspx_at_begin, _jspx_at_end, null);
029 }
030
031 public JspContext getJspContext() {
032 return this.jspContext;
033 }
034 private javax.servlet.jsp.tagext.JspFragment normalPrice;
035 private javax.servlet.jsp.tagext.JspFragment onSale;
036
037 public javax.servlet.jsp.tagext.JspFragment getNormalPrice() {
038 return this.normalPrice;
039 }
040
041 public void setNormalPrice(javax.servlet.jsp.tagext.JspFragment normalPrice) {
042 this.normalPrice = normalPrice;
043 }
044
045 public javax.servlet.jsp.tagext.JspFragment getOnSale() {
046 return this.onSale;
047 }
048
049 public void setOnSale(javax.servlet.jsp.tagext.JspFragment onSale) {
050 this.onSale = onSale;
051 }
052
053 public Object getDependants() {
054 return _jspx_dependants;
055 }
056
057 private void _jspInit(ServletConfig config) {
058 _jspx_tagPool_c_set_var_value_nobody = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(config);
059 }
060
061 public void _jspDestroy() {
062 _jspx_tagPool_c_set_var_value_nobody.release();
063 }
064
065 public void doTag() throws JspException, java.io.IOException {
066 PageContext _jspx_page_context = (PageContext)jspContext;
067 HttpServletRequest request = (HttpServletRequest) _jspx_page_context.getRequest();
068 HttpServletResponse response = (HttpServletResponse) _jspx_page_context.getResponse();
069 HttpSession session = _jspx_page_context.getSession();
070 ServletContext application = _jspx_page_context.getServletContext();
071 ServletConfig config = _jspx_page_context.getServletConfig();
072 JspWriter out = jspContext.getOut();
073 _jspInit(config);
074 if( getNormalPrice() != null )
075 _jspx_page_context.setAttribute("normalPrice", getNormalPrice());
076 if( getOnSale() != null )
077 _jspx_page_context.setAttribute("onSale", getOnSale());
078
079 try {
080 out.write("<!--\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\n\n\n\n\n\n\n\n<table border=\"1\">\n <tr>\n <td> \n ");
081 if (_jspx_meth_c_set_0(_jspx_page_context))
082 return;
083 out.write("\n ");
084 if (_jspx_meth_c_set_1(_jspx_page_context))
085 return;
086 out.write("\n ");
087 ((org.apache.jasper.runtime.JspContextWrapper) this.jspContext).syncBeforeInvoke();
088 _jspx_sout = null;
089 if (getNormalPrice() != null) {
090 getNormalPrice().invoke(_jspx_sout);
091 }
092 out.write("\n </td>\n <td> \n ");
093 if (_jspx_meth_c_set_2(_jspx_page_context))
094 return;
095 out.write("\n ");
096 if (_jspx_meth_c_set_3(_jspx_page_context))
097 return;
098 out.write("\n ");
099 if (_jspx_meth_c_set_4(_jspx_page_context))
100 return;
101 out.write("\n ");
102 ((org.apache.jasper.runtime.JspContextWrapper) this.jspContext).syncBeforeInvoke();
103 _jspx_sout = null;
104 if (getOnSale() != null) {
105 getOnSale().invoke(_jspx_sout);
106 }
107 out.write("\n </td>\n <td> \n ");
108 if (_jspx_meth_c_set_5(_jspx_page_context))
109 return;
110 out.write("\n ");
111 if (_jspx_meth_c_set_6(_jspx_page_context))
112 return;
113 out.write("\n ");
114 ((org.apache.jasper.runtime.JspContextWrapper) this.jspContext).syncBeforeInvoke();
115 _jspx_sout = null;
116 if (getNormalPrice() != null) {
117 getNormalPrice().invoke(_jspx_sout);
118 }
119 out.write("\n </td>\n <td> \n ");
120 if (_jspx_meth_c_set_7(_jspx_page_context))
121 return;
122 out.write("\n ");
123 if (_jspx_meth_c_set_8(_jspx_page_context))
124 return;
125 out.write("\n ");
126 ((org.apache.jasper.runtime.JspContextWrapper) this.jspContext).syncBeforeInvoke();
127 _jspx_sout = null;
128 if (getNormalPrice() != null) {
129 getNormalPrice().invoke(_jspx_sout);
130 }
131 out.write("\n </td>\n <td> \n ");
132 if (_jspx_meth_c_set_9(_jspx_page_context))
133 return;
134 out.write("\n ");
135 if (_jspx_meth_c_set_10(_jspx_page_context))
136 return;
137 out.write("\n ");
138 if (_jspx_meth_c_set_11(_jspx_page_context))
139 return;
140 out.write("\n ");
141 ((org.apache.jasper.runtime.JspContextWrapper) this.jspContext).syncBeforeInvoke();
142 _jspx_sout = null;
143 if (getOnSale() != null) {
144 getOnSale().invoke(_jspx_sout);
145 }
146 out.write("\n </td>\n </tr>\n</table>\n");
147 } catch( Throwable t ) {
148 if( t instanceof SkipPageException )
149 throw (SkipPageException) t;
150 if( t instanceof java.io.IOException )
151 throw (java.io.IOException) t;
152 if( t instanceof IllegalStateException )
153 throw (IllegalStateException) t;
154 if( t instanceof JspException )
155 throw (JspException) t;
156 throw new JspException(t);
157 } finally {
158 ((org.apache.jasper.runtime.JspContextWrapper) jspContext).syncEndTagFile();
159 _jspDestroy();
160 }
161 }
162
163 private boolean _jspx_meth_c_set_0(PageContext _jspx_page_context)
164 throws Throwable {
165 JspWriter out = _jspx_page_context.getOut();
166 // c:set
167 org.apache.taglibs.standard.tag.rt.core.SetTag _jspx_th_c_set_0 = (org.apache.taglibs.standard.tag.rt.core.SetTag) _jspx_tagPool_c_set_var_value_nobody.get(org.apache.taglibs.standard.tag.rt.core.SetTag.class);
168 _jspx_th_c_set_0.setPageContext(_jspx_page_context);
169 _jspx_th_c_set_0.setParent(null);
170 _jspx_th_c_set_0.setVar("name");
171 _jspx_th_c_set_0.setValue(new String("Hand-held Color PDA"));
172 int _jspx_eval_c_set_0 = _jspx_th_c_set_0.doStartTag();
173 if (_jspx_th_c_set_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
174 _jspx_tagPool_c_set_var_value_nobody.reuse(_jspx_th_c_set_0);
175 throw new SkipPageException();
176 }
177 _jspx_tagPool_c_set_var_value_nobody.reuse(_jspx_th_c_set_0);
178 return false;
179 }
180
181 private boolean _jspx_meth_c_set_1(PageContext _jspx_page_context)
182 throws Throwable {
183 JspWriter out = _jspx_page_context.getOut();
184 // c:set
185 org.apache.taglibs.standard.tag.rt.core.SetTag _jspx_th_c_set_1 = (org.apache.taglibs.standard.tag.rt.core.SetTag) _jspx_tagPool_c_set_var_value_nobody.get(org.apache.taglibs.standard.tag.rt.core.SetTag.class);
186 _jspx_th_c_set_1.setPageContext(_jspx_page_context);
187 _jspx_th_c_set_1.setParent(null);
188 _jspx_th_c_set_1.setVar("price");
189 _jspx_th_c_set_1.setValue(new String("$298.86"));
190 int _jspx_eval_c_set_1 = _jspx_th_c_set_1.doStartTag();
191 if (_jspx_th_c_set_1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
192 _jspx_tagPool_c_set_var_value_nobody.reuse(_jspx_th_c_set_1);
193 throw new SkipPageException();
194 }
195 _jspx_tagPool_c_set_var_value_nobody.reuse(_jspx_th_c_set_1);
196 return false;
197 }
198
199 private boolean _jspx_meth_c_set_2(PageContext _jspx_page_context)
200 throws Throwable {
201 JspWriter out = _jspx_page_context.getOut();
202 // c:set
203 org.apache.taglibs.standard.tag.rt.core.SetTag _jspx_th_c_set_2 = (org.apache.taglibs.standard.tag.rt.core.SetTag) _jspx_tagPool_c_set_var_value_nobody.get(org.apache.taglibs.standard.tag.rt.core.SetTag.class);
204 _jspx_th_c_set_2.setPageContext(_jspx_page_context);
205 _jspx_th_c_set_2.setParent(null);
206 _jspx_th_c_set_2.setVar("name");
207 _jspx_th_c_set_2.setValue(new String("4-Pack 150 Watt Light Bulbs"));
208 int _jspx_eval_c_set_2 = _jspx_th_c_set_2.doStartTag();
209 if (_jspx_th_c_set_2.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
210 _jspx_tagPool_c_set_var_value_nobody.reuse(_jspx_th_c_set_2);
211 throw new SkipPageException();
212 }
213 _jspx_tagPool_c_set_var_value_nobody.reuse(_jspx_th_c_set_2);
214 return false;
215 }
216
217 private boolean _jspx_meth_c_set_3(PageContext _jspx_page_context)
218 throws Throwable {
219 JspWriter out = _jspx_page_context.getOut();
220 // c:set
221 org.apache.taglibs.standard.tag.rt.core.SetTag _jspx_th_c_set_3 = (org.apache.taglibs.standard.tag.rt.core.SetTag) _jspx_tagPool_c_set_var_value_nobody.get(org.apache.taglibs.standard.tag.rt.core.SetTag.class);
222 _jspx_th_c_set_3.setPageContext(_jspx_page_context);
223 _jspx_th_c_set_3.setParent(null);
224 _jspx_th_c_set_3.setVar("origPrice");
225 _jspx_th_c_set_3.setValue(new String("$2.98"));
226 int _jspx_eval_c_set_3 = _jspx_th_c_set_3.doStartTag();
227 if (_jspx_th_c_set_3.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
228 _jspx_tagPool_c_set_var_value_nobody.reuse(_jspx_th_c_set_3);
229 throw new SkipPageException();
230 }
231 _jspx_tagPool_c_set_var_value_nobody.reuse(_jspx_th_c_set_3);
232 return false;
233 }
234
235 private boolean _jspx_meth_c_set_4(PageContext _jspx_page_context)
236 throws Throwable {
237 JspWriter out = _jspx_page_context.getOut();
238 // c:set
239 org.apache.taglibs.standard.tag.rt.core.SetTag _jspx_th_c_set_4 = (org.apache.taglibs.standard.tag.rt.core.SetTag) _jspx_tagPool_c_set_var_value_nobody.get(org.apache.taglibs.standard.tag.rt.core.SetTag.class);
240 _jspx_th_c_set_4.setPageContext(_jspx_page_context);
241 _jspx_th_c_set_4.setParent(null);
242 _jspx_th_c_set_4.setVar("salePrice");
243 _jspx_th_c_set_4.setValue(new String("$2.32"));
244 int _jspx_eval_c_set_4 = _jspx_th_c_set_4.doStartTag();
245 if (_jspx_th_c_set_4.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
246 _jspx_tagPool_c_set_var_value_nobody.reuse(_jspx_th_c_set_4);
247 throw new SkipPageException();
248 }
249 _jspx_tagPool_c_set_var_value_nobody.reuse(_jspx_th_c_set_4);
250 return false;
251 }
252
253 private boolean _jspx_meth_c_set_5(PageContext _jspx_page_context)
254 throws Throwable {
255 JspWriter out = _jspx_page_context.getOut();
256 // c:set
257 org.apache.taglibs.standard.tag.rt.core.SetTag _jspx_th_c_set_5 = (org.apache.taglibs.standard.tag.rt.core.SetTag) _jspx_tagPool_c_set_var_value_nobody.get(org.apache.taglibs.standard.tag.rt.core.SetTag.class);
258 _jspx_th_c_set_5.setPageContext(_jspx_page_context);
259 _jspx_th_c_set_5.setParent(null);
260 _jspx_th_c_set_5.setVar("name");
261 _jspx_th_c_set_5.setValue(new String("Digital Cellular Phone"));
262 int _jspx_eval_c_set_5 = _jspx_th_c_set_5.doStartTag();
263 if (_jspx_th_c_set_5.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
264 _jspx_tagPool_c_set_var_value_nobody.reuse(_jspx_th_c_set_5);
265 throw new SkipPageException();
266 }
267 _jspx_tagPool_c_set_var_value_nobody.reuse(_jspx_th_c_set_5);
268 return false;
269 }
270
271 private boolean _jspx_meth_c_set_6(PageContext _jspx_page_context)
272 throws Throwable {
273 JspWriter out = _jspx_page_context.getOut();
274 // c:set
275 org.apache.taglibs.standard.tag.rt.core.SetTag _jspx_th_c_set_6 = (org.apache.taglibs.standard.tag.rt.core.SetTag) _jspx_tagPool_c_set_var_value_nobody.get(org.apache.taglibs.standard.tag.rt.core.SetTag.class);
276 _jspx_th_c_set_6.setPageContext(_jspx_page_context);
277 _jspx_th_c_set_6.setParent(null);
278 _jspx_th_c_set_6.setVar("price");
279 _jspx_th_c_set_6.setValue(new String("$68.74"));
280 int _jspx_eval_c_set_6 = _jspx_th_c_set_6.doStartTag();
281 if (_jspx_th_c_set_6.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
282 _jspx_tagPool_c_set_var_value_nobody.reuse(_jspx_th_c_set_6);
283 throw new SkipPageException();
284 }
285 _jspx_tagPool_c_set_var_value_nobody.reuse(_jspx_th_c_set_6);
286 return false;
287 }
288
289 private boolean _jspx_meth_c_set_7(PageContext _jspx_page_context)
290 throws Throwable {
291 JspWriter out = _jspx_page_context.getOut();
292 // c:set
293 org.apache.taglibs.standard.tag.rt.core.SetTag _jspx_th_c_set_7 = (org.apache.taglibs.standard.tag.rt.core.SetTag) _jspx_tagPool_c_set_var_value_nobody.get(org.apache.taglibs.standard.tag.rt.core.SetTag.class);
294 _jspx_th_c_set_7.setPageContext(_jspx_page_context);
295 _jspx_th_c_set_7.setParent(null);
296 _jspx_th_c_set_7.setVar("name");
297 _jspx_th_c_set_7.setValue(new String("Baby Grand Piano"));
298 int _jspx_eval_c_set_7 = _jspx_th_c_set_7.doStartTag();
299 if (_jspx_th_c_set_7.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
300 _jspx_tagPool_c_set_var_value_nobody.reuse(_jspx_th_c_set_7);
301 throw new SkipPageException();
302 }
303 _jspx_tagPool_c_set_var_value_nobody.reuse(_jspx_th_c_set_7);
304 return false;
305 }
306
307 private boolean _jspx_meth_c_set_8(PageContext _jspx_page_context)
308 throws Throwable {
309 JspWriter out = _jspx_page_context.getOut();
310 // c:set
311 org.apache.taglibs.standard.tag.rt.core.SetTag _jspx_th_c_set_8 = (org.apache.taglibs.standard.tag.rt.core.SetTag) _jspx_tagPool_c_set_var_value_nobody.get(org.apache.taglibs.standard.tag.rt.core.SetTag.class);
312 _jspx_th_c_set_8.setPageContext(_jspx_page_context);
313 _jspx_th_c_set_8.setParent(null);
314 _jspx_th_c_set_8.setVar("price");
315 _jspx_th_c_set_8.setValue(new String("$10,800.00"));
316 int _jspx_eval_c_set_8 = _jspx_th_c_set_8.doStartTag();
317 if (_jspx_th_c_set_8.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
318 _jspx_tagPool_c_set_var_value_nobody.reuse(_jspx_th_c_set_8);
319 throw new SkipPageException();
320 }
321 _jspx_tagPool_c_set_var_value_nobody.reuse(_jspx_th_c_set_8);
322 return false;
323 }
324
325 private boolean _jspx_meth_c_set_9(PageContext _jspx_page_context)
326 throws Throwable {
327 JspWriter out = _jspx_page_context.getOut();
328 // c:set
329 org.apache.taglibs.standard.tag.rt.core.SetTag _jspx_th_c_set_9 = (org.apache.taglibs.standard.tag.rt.core.SetTag) _jspx_tagPool_c_set_var_value_nobody.get(org.apache.taglibs.standard.tag.rt.core.SetTag.class);
330 _jspx_th_c_set_9.setPageContext(_jspx_page_context);
331 _jspx_th_c_set_9.setParent(null);
332 _jspx_th_c_set_9.setVar("name");
333 _jspx_th_c_set_9.setValue(new String("Luxury Car w/ Leather Seats"));
334 int _jspx_eval_c_set_9 = _jspx_th_c_set_9.doStartTag();
335 if (_jspx_th_c_set_9.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
336 _jspx_tagPool_c_set_var_value_nobody.reuse(_jspx_th_c_set_9);
337 throw new SkipPageException();
338 }
339 _jspx_tagPool_c_set_var_value_nobody.reuse(_jspx_th_c_set_9);
340 return false;
341 }
342
343 private boolean _jspx_meth_c_set_10(PageContext _jspx_page_context)
344 throws Throwable {
345 JspWriter out = _jspx_page_context.getOut();
346 // c:set
347 org.apache.taglibs.standard.tag.rt.core.SetTag _jspx_th_c_set_10 = (org.apache.taglibs.standard.tag.rt.core.SetTag) _jspx_tagPool_c_set_var_value_nobody.get(org.apache.taglibs.standard.tag.rt.core.SetTag.class);
348 _jspx_th_c_set_10.setPageContext(_jspx_page_context);
349 _jspx_th_c_set_10.setParent(null);
350 _jspx_th_c_set_10.setVar("origPrice");
351 _jspx_th_c_set_10.setValue(new String("$23,980.00"));
352 int _jspx_eval_c_set_10 = _jspx_th_c_set_10.doStartTag();
353 if (_jspx_th_c_set_10.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
354 _jspx_tagPool_c_set_var_value_nobody.reuse(_jspx_th_c_set_10);
355 throw new SkipPageException();
356 }
357 _jspx_tagPool_c_set_var_value_nobody.reuse(_jspx_th_c_set_10);
358 return false;
359 }
360
361 private boolean _jspx_meth_c_set_11(PageContext _jspx_page_context)
362 throws Throwable {
363 JspWriter out = _jspx_page_context.getOut();
364 // c:set
365 org.apache.taglibs.standard.tag.rt.core.SetTag _jspx_th_c_set_11 = (org.apache.taglibs.standard.tag.rt.core.SetTag) _jspx_tagPool_c_set_var_value_nobody.get(org.apache.taglibs.standard.tag.rt.core.SetTag.class);
366 _jspx_th_c_set_11.setPageContext(_jspx_page_context);
367 _jspx_th_c_set_11.setParent(null);
368 _jspx_th_c_set_11.setVar("salePrice");
369 _jspx_th_c_set_11.setValue(new String("$21,070.00"));
370 int _jspx_eval_c_set_11 = _jspx_th_c_set_11.doStartTag();
371 if (_jspx_th_c_set_11.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
372 _jspx_tagPool_c_set_var_value_nobody.reuse(_jspx_th_c_set_11);
373 throw new SkipPageException();
374 }
375 _jspx_tagPool_c_set_var_value_nobody.reuse(_jspx_th_c_set_11);
376 return false;
377 }
378 }