Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0003752 [Resin] major always 11-09-09 07:29 03-24-10 17:46
Reporter biku View Status public  
Assigned To ferg
Priority normal Resolution fixed  
Status closed   Product Version 3.1.4
Summary 0003752: jstl xml forEach varStatus does not report right status
Description varStatus of forEach loop on xml taglib of jstl has this bug:
varStatus attribute does not report 'last' & 'first' status - it is always 'false'

Tested it in 3.1.4 | 3.1.9 | 4.0.1

Here is the sample code, just put it in a jsp page:

<%@ taglib uri="http://java.sun.com/jsp/jstl/core" [^] prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/xml" [^]  prefix="x" %>

============

<c:set var="docString">
<doc>
<a><b foo="foo">foo 1</a>
 <a><c foo="bar">bar 2</c></a>
 <a><d foo="bar">bar 3</d></a>
 <a><d foo="foo">foo 4</d></a>
</doc>
</c:set>

<x:parse var="document" doc="${docString}"/>

<x:forEach select="$document//a" varStatus="status">
 ${status.index}: <x:out select="."/> first:${status.first} last:${status.last}

</x:forEach>
===========
Additional Information
Attached Files

- Relationships

- Notes
(0004486)
ferg
03-24-10 17:46

jsp/1g5c
 

- Issue History
Date Modified Username Field Change
11-09-09 07:29 biku New Issue
03-24-10 17:46 ferg Note Added: 0004486
03-24-10 17:46 ferg Assigned To  => ferg
03-24-10 17:46 ferg Status new => closed
03-24-10 17:46 ferg Resolution open => fixed
03-24-10 17:46 ferg Fixed in Version  => 4.0.6


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