Bug 54888

Summary: TagPlugin "ForEach" doesn't support CSV items
Product: Tomcat 7 Reporter: Sheldon Shao <xshao>
Component: JasperAssignee: Tomcat Developers Mailing List <dev>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P2    
Version: trunk   
Target Milestone: ---   
Hardware: PC   
OS: All   
Attachments: Patch for "ForEach"

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.