Mantis - Resin
|
|||||
Viewing Issue Advanced Details | |||||
|
|||||
ID: | Category: | Severity: | Reproducibility: | Date Submitted: | Last Update: |
5842 | minor | always | 12-29-14 09:07 | 12-30-14 12:39 | |
|
|||||
Reporter: | nam | Platform: | |||
Assigned To: | OS: | ||||
Priority: | high | OS Version: | |||
Status: | closed | Product Version: | 4.0.41 | ||
Product Build: | Resolution: | no change required | |||
Projection: | none | ||||
ETA: | none | Fixed in Version: | |||
|
|||||
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> |
||||
Steps To Reproduce: | |||||
Additional Information: | |||||
Relationships | |||||
Attached Files: |
Notes | |||||
|
|||||
|
|