You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Keshava Murthy <ke...@bigtec.org> on 2002/11/19 08:53:55 UTC
setting varaibles in a loop
Hi
I am trying to declare variables and assign values to it in a loop ?
when i tried to assign values as given below
#foreach($i in $Privileges)
#set($formid$velocityCount = $i.getValue(2).asString())
#end
the error - Encountered "$velocityCount" appears in turbine log.
could someone suggest me how to achive this?
Re: setting varaibles in a loop
Posted by Rodney Schneider <ro...@actf.com.au>.
Hi,
The velocity-user mailing list is the best place to ask these sorts of
questions.
Regards,
-- Rodney
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: setting varaibles in a loop
Posted by malcolm cooke <ma...@firstlightassociates.co.uk>.
does ${$formid$velocityCount} work at all?
Malcolm
At 09:55 19/11/02 +0000, you wrote:
>I have also tried constructing variable names on the fly wothout success.
>The VTL spec doesn't seem to cover it.
>
>the ${formid}${velocityCount}constructs don't seem to help...
>
>N
>
>----- Original Message -----
>From: "Keshava Murthy" <ke...@bigtec.org>
>To: <tu...@jakarta.apache.org>
>Sent: Tuesday, November 19, 2002 7:53 AM
>Subject: setting varaibles in a loop
>
>
>
>Hi
> I am trying to declare variables and assign values to it in a loop ?
>when i tried to assign values as given below
>#foreach($i in $Privileges)
> #set($formid$velocityCount = $i.getValue(2).asString())
>#end
>
>the error - Encountered "$velocityCount" appears in turbine log.
>could someone suggest me how to achive this?
>
>
>--
>To unsubscribe, e-mail: <ma...@jakarta.apache.org>
>For additional commands, e-mail: <ma...@jakarta.apache.org>
>
>
>
>
>---
>Incoming mail is certified Virus Free.
>Checked by AVG anti-virus system (http://www.grisoft.com).
>Version: 6.0.417 / Virus Database: 233 - Release Date: 08/11/02
Re: setting varaibles in a loop
Posted by Neil Stevens <ne...@firstlightassociates.co.uk>.
I have also tried constructing variable names on the fly wothout success.
The VTL spec doesn't seem to cover it.
the ${formid}${velocityCount}constructs don't seem to help...
N
----- Original Message -----
From: "Keshava Murthy" <ke...@bigtec.org>
To: <tu...@jakarta.apache.org>
Sent: Tuesday, November 19, 2002 7:53 AM
Subject: setting varaibles in a loop
Hi
I am trying to declare variables and assign values to it in a loop ?
when i tried to assign values as given below
#foreach($i in $Privileges)
#set($formid$velocityCount = $i.getValue(2).asString())
#end
the error - Encountered "$velocityCount" appears in turbine log.
could someone suggest me how to achive this?
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>