Anonymous | Login | Signup for a new account | 12-17-2024 12:01 PST |
Main | My View | View Issues | Change Log | Docs |
Viewing Issue Simple Details [ Jump to Notes ] | [ View Advanced ] [ Issue History ] [ Print ] | ||||||||
ID | Category | Severity | Reproducibility | Date Submitted | Last Update | ||||
0005842 | [Resin] | minor | always | 12-29-14 09:07 | 12-30-14 12:39 | ||||
Reporter | nam | View Status | public | ||||||
Assigned To | |||||||||
Priority | high | Resolution | no change required | ||||||
Status | closed | Product Version | 4.0.41 | ||||||
Summary | 0005842: jsp custom tag attributes are not re-set in a loop | ||||||||
Description |
(rep by Yoo) Custom tags are pooled in Resin, but tag attributes are only set once in the loop. This behavior is different from Tomcat. This is an issue because user code may be changing attribute fields between loop iterations. <%@ page pageEncoding="UTF-8"%> <%@ taglib prefix='c' uri='http://java.sun.com/jsp/jstl/core' [^] %> <%@ taglib prefix='aof' uri='WEB-INF/mytags.tld' %> <%@ page import="java.util.*" %> <% List<String> list = new ArrayList<String>(); list.add("a"); list.add("b"); list.add("c"); %> <c:set var="list" value="<%= list %>" /> <c:forEach var="row" items="${list}" varStatus="i"> <c:out value="${i.index}" />: <c:out value="${row}" />, <aof:code type="print" codeGroup="TERM_TYPE" selected="${row}" /> </c:forEach> <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN" "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd"> [^] <taglib> <tlib-version>1.0</tlib-version> <jsp-version>1.2</jsp-version> <short-name>aof</short-name> <tag> <name>code</name> <tag-class>test.CodeTag</tag-class> <body-content>JSP</body-content> <attribute> <name>type</name> <required>true</required> <rtexprvalue>true</rtexprvalue> </attribute> <attribute> <name>codeGroup</name> <required>true</required> <rtexprvalue>true</rtexprvalue> </attribute> <attribute> <name>selected</name> <rtexprvalue>true</rtexprvalue> </attribute> </tag> </taglib> |
||||||||
Additional Information | |||||||||
Attached Files | |||||||||
|
Notes | |
(0006586) nam 12-30-14 12:39 |
This is expected behavior as required by the JSP spec. To turn off tag reuse: <web-app> <jsp recycle-tags="false"/> </web-app> jsp recycle-tags config is not working: http://bugs.caucho.com/view.php?id=5843 [^] |
Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
30 total queries executed. 25 unique queries executed. |