velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Santosh Puranshettiwar <sant...@wirkle.com>
Subject Re: Regarding #set & newline
Date Fri, 25 Aug 2006 11:22:13 GMT
Thanks alot Serge. Thats a simple nice solution.

Santosh.
Serge Matveenko wrote:
> i think you might don't know that you can use $string.concat() method to
> concatenate two strings
> ( http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html#concat(java.lang.String)
)
> try to assemble your query string in one variable and then use it in
> ever place you want
>
> On Птн, 2006-08-25 at 12:50 +0530, Santosh Puranshettiwar wrote:
>
>   
>> 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
>>
>>     
>
>   


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