DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=32547>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=32547

           Summary: Tag Within Tag Generate Incorrect .java File
           Product: Tomcat 5
           Version: 5.0.29
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Jasper
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


Hello,

I have a very simple .jsp file that has the following content:

<spring:nestedPath path="foo">
...
<spring:nestedPath path="bar">
..
</spring:nestedPath>
</spring:nestedPath>

When compiling with Jasper2 (via the Ant Task), Java source code is created that
can't be compiled.

The error:
jspc:
    [javac] Compiling 11 source files to C:\eclipse\workspace\Lala\build\classes
    [javac]
C:\eclipse\workspace\Lala\build\jspc\org\apache\jsp\WEB_002dINF\jsp\newAccount_jsp.java:286:
cannot resolve symbol
    [javac] symbol  : variable _jspx_nestedPath_1
    [javac] location: class
org.apache.jsp.WEB_002dINF.jsp.newAccount_jsp.newAccount_jspHelper
    [javac] _jspx_nestedPath_1 = nestedPath;

I have attached the source for the created .java file.  The variable,
_jspx_nestedPath_1 is declared outside of the scope of that line (hence the 
error).

The tag source code:
http://cvs.sourceforge.net/viewcvs.py/springframework/spring/src/org/springframework/web/servlet/tags/NestedPathTag.java?rev=1.3&view=log

The tag tld:
http://cvs.sourceforge.net/viewcvs.py/springframework/spring/src/org/springframework/web/servlet/tags/spring.tld?rev=1.8&view=log

My ant task that does the compiling:
        <jasper2
             trimSpaces="true"
             validateXml="false"
             uriroot="${web.dir}"
             webXmlFragment="${build.dir}/compiled_jsp.xml"
             outputDir="${build.dir}/jspc" />
             
        <mkdir dir="${jsp.classes.dir}" />

        <javac srcdir="${build.dir}/jspc"
            target="1.4"
            destdir="${jsp.classes.dir}"
            debug="on" debuglevel="lines,vars,source">
            <classpath refid="classpath" />

Thanks, Seth

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to