Thought that there is some special JEXL syntax that allows the creation
of collections, arrays and lists.
So instead of:
<new var="myMap" className="java.util.HashMap" />
<expr value="${myMap.put('foo', 'the first string')}" />
<expr value="${myMap.put('moo', 'the second string')}" />
one could write:
<set var="myMap" value="${foo:'the first string',moo:'the second
string'}" />
Dion Gillard wrote:
Using the new tag?
http://jakarta.apache.org/commons/jelly/tags.html#core:new
On 9/7/05, Adrian Herscu <[EMAIL PROTECTED]> wrote:
Hi all,
I know how to access a map in Jelly.
<forEach
var="iter"
items="${map}">
${iter.key} = ${iter.value}
</forEach>
But, how can I create a map using Jelly syntax?
Thanks,
Adrian.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]