velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Assia Aouat" <as...@canada.sirsi.com>
Subject RE: beginner question2
Date Fri, 10 Sep 2004 19:56:04 GMT
May be

#set ($var = "")
#set ($list = ["1","2","3","4"])
#foreach($l in $list)
#set ($var= $var +" "+$l)
#end
$var

Hope that will help


-----Original Message-----
From: Mikael Larsson [mailto:mikael.x.larsson@tele2.se] 
Sent: Friday, September 10, 2004 3:56 PM
To: velocity-user@jakarta.apache.org
Subject: beginner question2
Importance: Low

Hi

How to avoid this output
#set ($list = ["1","2","3","4"])
#foreach($l in $list)
$l
#end

prints
1
2
3
4

I want this
1234

//Mike

---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org


Mime
View raw message