|
Setting Variables: msg#00196jakarta.velocity.user
Have a interesting problem: If I do something like : #set( $foo = $bar / 52 ) $foo where $bar is some Float set in the context (say 52), then I get $foo - ie it isn't replaced. However, if I do this: #set( $foo = 0 ) #set( $foo = $bar /52 ) $foo Then the result is: 1 Which is correct. Question is why do I need to set $foo to zero before doing the second set for it to work? Regards, Peter |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Formatting Issue (Whitespace): 00196, Hiroaki Nakamura |
|---|---|
| Next by Date: | Re: Formatting Issue (Whitespace): 00196, Christoph . Reck |
| Previous by Thread: | Newbie - Keep getting ResourceNotFoundExceptioni: 00196, Søren Neigaard |
| Next by Thread: | Re: Setting Variables: 00196, Geir Magnusson Jr . |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |