Return-Path: Delivered-To: apmail-jakarta-tomcat-dev-archive@apache.org Received: (qmail 95624 invoked from network); 1 Aug 2003 15:23:13 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 1 Aug 2003 15:23:13 -0000 Received: (qmail 12453 invoked by uid 97); 1 Aug 2003 15:25:50 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-dev@nagoya.betaversion.org Received: (qmail 12446 invoked from network); 1 Aug 2003 15:25:50 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 1 Aug 2003 15:25:50 -0000 Received: (qmail 93022 invoked by uid 500); 1 Aug 2003 15:22:37 -0000 Mailing-List: contact tomcat-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Developers List" Reply-To: "Tomcat Developers List" Delivered-To: mailing list tomcat-dev@jakarta.apache.org Received: (qmail 92959 invoked from network); 1 Aug 2003 15:22:36 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 1 Aug 2003 15:22:36 -0000 Received: (qmail 12416 invoked by uid 50); 1 Aug 2003 15:25:14 -0000 Date: 1 Aug 2003 15:25:14 -0000 Message-ID: <20030801152514.12415.qmail@nagoya.betaversion.org> From: bugzilla@apache.org To: tomcat-dev@jakarta.apache.org Cc: Subject: DO NOT REPLY [Bug 22058] New: - incorrect JSP compilation X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22058 incorrect JSP compilation Summary: incorrect JSP compilation Product: Tomcat 5 Version: 5.0.5 Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: Other Component: Jasper2 AssignedTo: tomcat-dev@jakarta.apache.org ReportedBy: gilles.scokart@axa.be I have a simple JSP that use a custom tag (file) writen by extending SimpleTagSupport. Here is the JSP : <%@ taglib uri="c-rt.tld" prefix="b" %> <%@ taglib uri="templater.tld" prefix="t" %> The generated code doesn't compile. The error is: _jspx_push_body_count_b_forEach_0 cannot be resolved (in the function invoke_0) Here is an extract of the generated code: private class test_jspHelper extends org.apache.jasper.runtime.JspFragmentHelper { private javax.servlet.jsp.tagext.JspTag parentTag; public test_jspHelper( int discriminator, JspContext jspContext, javax.servlet.jsp.tagext.JspTag parentTag ) { super( discriminator, jspContext, parentTag ); this.parentTag = parentTag; } public boolean invoke0( java.io.Writer out ) throws Throwable { javax.servlet.jsp.tagext.JspTag _jspx_th_t_file_0 = parentTag; out.write("\r\n\t\t"); if (_jspx_meth_b_if_0(_jspx_th_t_file_0, pageContext, _jspx_push_body_count_b_forEach_0)) return true; out.write("\r\n\t"); return false; } public void invoke( java.io.Writer writer ) throws javax.servlet.jsp.JspException { java.io.Writer out = null; if( writer != null ) { out = this.jspContext.pushBody(writer); } else { out = this.jspContext.getOut(); } try { switch( this.discriminator ) { case 0: invoke0( out ); break; } } catch( Throwable e ) { if (e instanceof javax.servlet.jsp.SkipPageException) throw (javax.servlet.jsp.SkipPageException) e; throw new javax.servlet.jsp.JspException( e ); } finally { if( writer != null ) { this.jspContext.popBody(); } } } --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org