You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by Leina Last <ey...@yahoo.com> on 2003/09/19 09:57:23 UTC

struggle to diplay $value

Hi
I would like to dipslay a context value from java in vm template.
>From java it looks something like:
context.put("value"+i,"valueOne") where i is the variable  int i = 0; 
 
In .vm I tried someting like: #set($i = 0) or #set($i = "0") 
To dispaly value I tried "$value$i" or just $value$i
In the browser screen IE5 it just display: $value0
If I hardcode "$value0" or just $value0 in the .vm it works well and display  valueOne , but not with $value$i.
 
Can someone please help me?
 
Thanks
L


---------------------------------
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software