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=38197>. 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=38197 Summary: taglib pool bug when tag is used with jsp:attribute Product: Tomcat 5 Version: 5.5.12 Platform: PC OS/Version: Windows XP Status: NEW Severity: major Priority: P2 Component: Jasper AssignedTo: tomcat-dev@jakarta.apache.org ReportedBy: [EMAIL PROTECTED] When i use a taglib twice in the same page and the two instances of these tags share the same atrributes in the declaration but one of them have and attribute set using jsp:attribute, the value of this attribute is used in the other one too. Example <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %> <html> <body> <h4>1 to 10 step 2</h4> <c:forEach var="i" begin="1" end="10"> <jsp:attribute name="step">2</jsp:attribute> <jsp:body> <c:out value="${i}"/> </jsp:body> </c:forEach> <br> <h4>1 to 10 no step</h4> <c:forEach var="i" begin="1" end="10" > <c:out value="${i}"/> </c:forEach> </body> </html> The output is Simple Range Iteration 1 to 10 step 2 1 3 5 7 9 1 to 10 no step 1 3 5 7 9 Expected Simple Range Iteration 1 to 10 step 2 1 3 5 7 9 1 to 10 no step 1 2 3 4 5 5 7 8 9 Thanks -- 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]