Mantis Bugtracker

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='' [^] %>
<%@ taglib prefix='aof' uri='WEB-INF/mytags.tld' %>
<%@ page import="java.util.*" %>
    List<String> list = new ArrayList<String>();

<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}" />


<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN"
                        ""> [^]



Additional Information
Attached Files

- Relationships

- Notes
12-30-14 12:39

This is expected behavior as required by the JSP spec. To turn off tag reuse:

  <jsp recycle-tags="false"/>

jsp recycle-tags config is not working: [^]

- Issue History
Date Modified Username Field Change
12-29-14 09:07 nam New Issue
12-29-14 09:12 nam Description Updated
12-29-14 09:14 nam Priority normal => high
12-29-14 09:14 nam Description Updated
12-29-14 09:19 nam Summary jstl custom tag attributes are not re-set in a loop => jsp custom tag attributes are not re-set in a loop
12-30-14 12:39 nam Status new => closed
12-30-14 12:39 nam Note Added: 0006586
12-30-14 12:39 nam Resolution open => no change required

Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
30 total queries executed.
25 unique queries executed.
Powered by Mantis Bugtracker