You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Inandjo Taurel <in...@hotmail.com> on 2003/09/15 18:03:55 UTC

how to get a setTemp() as an int on a velocity screen?

hiyall,

i have a string set to a value on a java screen file like:

String x = data.getUser().setTemp("name",value);
How can i retrieve this as an int on a velocity screen since setTemp() 
returns an String?

_________________________________________________________________
The new MSN 8: advanced junk mail protection and 2 months FREE* 
http://join.msn.com/?page=features/junkmail


Re: how to get a setTemp() as an int on a velocity screen?

Posted by Eric Emminger <er...@ericemminger.com>.
> i have a string set to a value on a java screen file like:
> 
> String x = data.getUser().setTemp("name",value);
> How can i retrieve this as an int on a velocity screen since setTemp() 
> returns an String?

If your data is actually an int, using an Integer rather than a String 
may be easier. Otherwise, you could put an Integer into the Context and do

$integer.valueOf($name).intValue()

Or, you could use a pull tool.

Eric