ASF Bugzilla – Attachment 30225 Details for
Bug 54888
TagPlugin "ForEach" doesn't support CSV items
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for "ForEach"
ForEach.diff (text/plain), 784 bytes, created by
Sheldon Shao
on 2013-04-24 16:49:45 UTC
(
hide
)
Description:
Patch for "ForEach"
Filename:
MIME Type:
Creator:
Sheldon Shao
Created:
2013-04-24 16:49:45 UTC
Size:
784 bytes
patch
obsolete
>Index: org/apache/jasper/tagplugins/jstl/core/ForEach.java >=================================================================== >--- org/apache/jasper/tagplugins/jstl/core/ForEach.java (revision 1471522) >+++ org/apache/jasper/tagplugins/jstl/core/ForEach.java (working copy) >@@ -155,6 +155,10 @@ > ctxt.generateJavaSource("else if (" + itemsV + " instanceof Map)"); > ctxt.generateJavaSource(iterV + "=((Map)" + itemsV + ").entrySet().iterator();"); > >+ // String >+ ctxt.generateJavaSource("else if (" + itemsV + " instanceof String)"); >+ ctxt.generateJavaSource(iterV + "=toIterator(new StringTokenizer((String)" + itemsV + ", \",\"));"); >+ > // Not null > ctxt.generateJavaSource("if (" + iterV + " != null) {"); >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 54888
: 30225