You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Cebron, Yann" <Ya...@lit.lineas.de> on 2003/02/13 11:44:33 UTC

[Tomcat 4.1.20/Jasper] Problems with JSTL's ?

Hello,

I have some pages using <c:forEach> extensively to iterate over collections of beans, some additionally contain 1-2 nested <c:forEach>s for sub-collections or other tags like <c:if> etc.

My pages compile and work fine with 4.1.18/4.1.19, but fail with 4.1.20. (no modifications to the server anywhere).

FYI, I'm using Struts1.1 (nightly), Struts-EL-Tags and Tiles.

Apparently JASPER is generating invalid sourcecode by defining counters outside the scope of the methods (e.g. nested Struts' <html-el:select>) trying to access them:

************************************************************************************************
org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: -1 in the jsp file: null

Generated servlet error:
    [javac] Since fork is true, ignoring compiler setting.
    [javac] Compiling 1 source file
    [javac] Since fork is true, ignoring compiler setting.
    [javac] C:\tomcat4.1.20\work\Standalone\localhost\op3\s\setproject_jsp.java:885: cannot resolve symbol
    [javac] symbol  : variable _jspx_push_body_count_c_forEach_1 
    [javac] location: class org.apache.jsp.setproject_jsp
    [javac]         _jspx_push_body_count_c_forEach_1++;
    [javac]         ^
    [javac] C:\tomcat4.1.20\work\Standalone\localhost\op3\s\setproject_jsp.java:899: cannot resolve symbol
    [javac] symbol  : variable _jspx_push_body_count_c_forEach_1 
    [javac] location: class org.apache.jsp.setproject_jsp
    [javac]         _jspx_push_body_count_c_forEach_1--;
    [javac]         ^
    [javac] C:\tomcat4.1.20\work\Standalone\localhost\op3\s\setproject_jsp.java:989: cannot resolve symbol
    [javac] symbol  : variable _jspx_push_body_count_c_forEach_2 
    [javac] location: class org.apache.jsp.setproject_jsp
    [javac]         _jspx_push_body_count_c_forEach_2++;
    [javac]         ^
    [javac] C:\tomcat4.1.20\work\Standalone\localhost\op3\s\setproject_jsp.java:1003: cannot resolve symbol
    [javac] symbol  : variable _jspx_push_body_count_c_forEach_2 
    [javac] location: class org.apache.jsp.setproject_jsp
    [javac]         _jspx_push_body_count_c_forEach_2--;
    [javac]         ^
    [javac] 4 errors
************************************************************************************************

Does anybody have the same problem or is it my JSP-page/Struts-Tags ?

TIA,
	Yann


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org