velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Santosh Puranshettiwar <sant...@wirkle.com>
Subject Regarding #set & newline
Date Fri, 25 Aug 2006 07:20:22 GMT
Consider:
#set( $idNo = 0 )
TestServlet?top_id=1#foreach($id in 
[1..10])&amp;id:$idNo=$id#set($idNo=$idNo+1)#end#foreach($id in 
[20..30])&amp;id:$idNo=$id#set($idNo=$idNo+1)#end

We all know #set does not rip-off the newline. Then what would be the 
possible solution to make the above snippet work.

Santosh

---------------------------------------------------------------------
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