velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "x-itus" <>
Subject Use ApplicationResources property in #foreach
Date Sat, 07 Dec 2002 19:26:21 GMT
How can I use a Struts ApplicationResources property as a list in #foreach? contains:
	list=['a', 'b', 'c']

my velocity template:
	#foreach($el in $msg.get('list'))

should result in an option list containing 'a', 'b' and 'c'.

I guess $msg.get('list') returns a string and #foreach will not turn that
into an array.

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message