Bug 54888 - TagPlugin "ForEach" doesn't support CSV items
Summary: TagPlugin "ForEach" doesn't support CSV items
Status: RESOLVED FIXED
Alias: None
Product: Tomcat 7
Classification: Unclassified
Component: Jasper (show other bugs)
Version: trunk
Hardware: PC All
: P2 normal (vote)
Target Milestone: ---
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-24 16:49 UTC by Sheldon Shao
Modified: 2013-04-29 13:28 UTC (History)
0 users



Attachments
Patch for "ForEach" (784 bytes, patch)
2013-04-24 16:49 UTC, Sheldon Shao
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sheldon Shao 2013-04-24 16:49:45 UTC
Created attachment 30225 [details]
Patch for "ForEach"

In JSTL, "forEach" supports items with String value.
The string can be a CSV format. For example,

<c:foreach items="1,2,3,4,5" var="i"></c:foreach>

However, it doesn't support in tagPlugin "ForEach".

Provided a patch for this issue.
Comment 1 Mark Thomas 2013-04-29 13:28:09 UTC
Thanks for the patch. Applied as-is to 7.0.x and will be included in 7.0.40 onwards. Applied with an added test case for trunk.