tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 12766] New: - Tomcat should use tld files in /WEB-INF/ over version in jar
Date Wed, 18 Sep 2002 11:44:10 GMT
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: tomcat-dev@jakarta.apache.org
        ReportedBy: woolfel@yahoo.com


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:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message