ASF Bugzilla – Attachment 8 Details for
Bug 559
Error when using ForTag
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
Precompiled jsp to check the line numbers.
jrun__test2ejsp9.java (text/plain), 5.73 KB, created by
Lee Ball
on 2001-02-09 04:25:41 UTC
(
hide
)
Description:
Precompiled jsp to check the line numbers.
Filename:
MIME Type:
Creator:
Lee Ball
Created:
2001-02-09 04:25:41 UTC
Size:
5.73 KB
patch
obsolete
>// Generated by JRun, do not edit > > >import javax.servlet.*; >import javax.servlet.http.*; >import javax.servlet.jsp.*; >import javax.servlet.jsp.tagext.*; >import allaire.jrun.jsp.JRunJSPStaticHelpers; > > >public class jrun__test2ejsp9 extends allaire.jrun.jsp.HttpJSPServlet implements allaire.jrun.jsp.JRunJspPage >{ > private ServletConfig config; > private ServletContext application; > private Object page = this; > private JspFactory __jspFactory = JspFactory.getDefaultFactory(); > > public void _jspService(HttpServletRequest request, HttpServletResponse response) > throws ServletException, java.io.IOException > { > if(config == null) { > config = getServletConfig(); > application = config.getServletContext(); > } > response.setContentType("text/html; charset=ISO-8859-1"); > PageContext pageContext = __jspFactory.getPageContext(this, request, response, null, true, 8192, true); > JspWriter out = pageContext.getOut(); > HttpSession session = pageContext.getSession(); > > > > > try { > > > out.print("\r\n\r\n\r\n\r\n<h1>Lee's second page</h1>\r\n"); > > org.apache.taglibs.utility.basic.Hello Hello__6_1 = (org.apache.taglibs.utility.basic.Hello)JRunJSPStaticHelpers.createTagHandler(pageContext, "org.apache.taglibs.utility.basic.Hello"); > Hello__6_1.setPageContext(pageContext); >Hello__6_1.setParent(null); >Hello__6_1.doStartTag(); > if(Hello__6_1.doEndTag() == Tag.SKIP_PAGE) { > > if(true) return; > } >out.print("\r\n\r\n"); >out.print("\r\n"); >out.print("\r\n\r\n"); > > org.apache.taglibs.utility.lang.ForTag for__11_1 = (org.apache.taglibs.utility.lang.ForTag)JRunJSPStaticHelpers.createTagHandler(pageContext, "org.apache.taglibs.utility.lang.ForTag"); > for__11_1.setPageContext(pageContext); >for__11_1.setParent(null); >for__11_1.setIterations("5"); >for__11_1.setVarName("i"); > int for__11_1_startVal = for__11_1.doStartTag(); > JRunJSPStaticHelpers.checkStartVal("org.apache.taglibs.utility.lang.ForTag",for__11_1_startVal,BodyTag.EVAL_BODY_TAG,11); > if(for__11_1_startVal == BodyTag.EVAL_BODY_TAG) { > out = pageContext.pushBody(); > ((BodyTag)for__11_1).setBodyContent((BodyContent)out); >((BodyTag)for__11_1).doInitBody(); > do{ > Integer i = (Integer)pageContext.getAttribute("i"); >; > out.print(" \r\n "); > >color[i.intValue()] = values[i.intValue()]; > out.print("\r\n"); > } while(((BodyTag)for__11_1).doAfterBody() == BodyTag.EVAL_BODY_TAG); > out = pageContext.popBody(); > } > if(for__11_1.doEndTag() == Tag.SKIP_PAGE) { > > if(true) return; > } >out.print("\r\n\r\n<ul>\r\n"); > > org.apache.taglibs.utility.lang.ForTag for__16_1 = (org.apache.taglibs.utility.lang.ForTag)JRunJSPStaticHelpers.createTagHandler(pageContext, "org.apache.taglibs.utility.lang.ForTag"); > for__16_1.setPageContext(pageContext); >for__16_1.setParent(null); >for__16_1.setBegin("2"); >for__16_1.setIterations( color.length ); >for__16_1.setVarName("j"); > int for__16_1_startVal = for__16_1.doStartTag(); > JRunJSPStaticHelpers.checkStartVal("org.apache.taglibs.utility.lang.ForTag",for__16_1_startVal,BodyTag.EVAL_BODY_TAG,16); > if(for__16_1_startVal == BodyTag.EVAL_BODY_TAG) { > out = pageContext.pushBody(); > ((BodyTag)for__16_1).setBodyContent((BodyContent)out); >((BodyTag)for__16_1).doInitBody(); > do{ > Integer j = (Integer)pageContext.getAttribute("j"); >; > out.print("\r\n "); > > org.apache.taglibs.utility.lang.IfTag If__17_3 = (org.apache.taglibs.utility.lang.IfTag)JRunJSPStaticHelpers.createTagHandler(pageContext, "org.apache.taglibs.utility.lang.IfTag"); > If__17_3.setPageContext(pageContext); >If__17_3.setParent(for__16_1); >If__17_3.setPredicate( j.intValue()==3 ); > int If__17_3_startVal = If__17_3.doStartTag(); > JRunJSPStaticHelpers.checkStartVal("org.apache.taglibs.utility.lang.IfTag",If__17_3_startVal,BodyTag.EVAL_BODY_TAG,17); > if(If__17_3_startVal == BodyTag.EVAL_BODY_TAG) { > out = pageContext.pushBody(); > ((BodyTag)If__17_3).setBodyContent((BodyContent)out); >((BodyTag)If__17_3).doInitBody(); > do{ >out.print("\r\n <li> "); > >out.print(color[j.intValue()]); >out.print("\r\n "); > } while(((BodyTag)If__17_3).doAfterBody() == BodyTag.EVAL_BODY_TAG); > out = pageContext.popBody(); > } > if(If__17_3.doEndTag() == Tag.SKIP_PAGE) { > > if(true) return; > } >out.print("\r\n"); > } while(((BodyTag)for__16_1).doAfterBody() == BodyTag.EVAL_BODY_TAG); > out = pageContext.popBody(); > } > if(for__16_1.doEndTag() == Tag.SKIP_PAGE) { > > if(true) return; > } >out.print("\r\n</ul>\r\n\r\n\r\n"); > > > } catch(Throwable t) { > if(t instanceof ServletException) > throw (ServletException) t; > if(t instanceof java.io.IOException) > throw (java.io.IOException) t; > if(t instanceof RuntimeException) > throw (RuntimeException) t; > throw JRunJSPStaticHelpers.handleException(t, pageContext); > > } finally { > __jspFactory.releasePageContext(pageContext); > } > } > > > > >String [] color = new String[5]; >String [] values = { "yellow", "red", "green", "blue", "pink"}; private static final String[] __dependencies__ = {"/test.jsp",null}; > > private static final long[] __times__ = {981720602000L,0L}; > > public String[] __getDependencies() > { > return __dependencies__; > } > > public long[] __getLastModifiedTimes() > { > return __times__; > } > > public int __getTranslationVersion() > { > return 14; > } > >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 559
: 8