velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "x-itus" <x-i...@pandora.be>
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?

ApplicationResources.properties contains:
	list=['a', 'b', 'c']

my velocity template:
	<select>
	#foreach($el in $msg.get('list'))
		<option>$el</option>
	#end
	</select>

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:   <mailto:velocity-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:velocity-user-help@jakarta.apache.org>


Mime
View raw message