Anonymous | Login | Signup for a new account | 12-17-2024 14:55 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 | ||||
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 | |||||||||
|
Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
29 total queries executed. 26 unique queries executed. |