DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12766>.
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=12766

Tomcat should use tld files in /WEB-INF/ over version in jar

           Summary: Tomcat should use tld files in /WEB-INF/ over version in
                    jar
           Product: Tomcat 4
           Version: 4.1.10
          Platform: All
        OS/Version: Other
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Servlet & JSP API
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


The bug is repeatable every time in 4.1.10 stable on windows and solaris. I've 
tested it with 4.0.3 for comparison to make sure the code works correctly. If 
there a tld file in both webapp/WEB-INF/ and jar file, 4.0.3 uses the one in 
/WEB-INF, whereas 4.1.10 uses the jar version. I haven't checked the spec, but 
I would expect the version in /WEB-INF/ has a presidence. to reproduce the 
behavior, use JSTL <x:forEach>. Place a copy of JSTL tld files in /WEB-INF/ and 
modify x.tld to include the attribute varStatus.

  <tag>
    <name>forEach</name>
    <tag-class>org.apache.taglibs.standard.tag.common.xml.ForEachTag</tag-class>
    <body-content>JSP</body-content>
    <description>
        XML iteration tag.
    </description>
    <attribute>
        <name>var</name>
        <required>false</required>
        <rtexprvalue>false</rtexprvalue>
    </attribute>
    <attribute>
        <name>varStatus</name>
        <required>false</required>
        <rtexprvalue>false</rtexprvalue>
    </attribute>
    <attribute>
        <name>select</name>
        <required>true</required>
        <rtexprvalue>false</rtexprvalue>
    </attribute>
  </tag>

The work around I found is to delete the tld files in the jar. Once I do that 
and restart, varStatus works correctly. Although this bug was exposed using 
JSTL, I believe it will affect all tags.

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

Reply via email to