You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by starkutboy <ba...@hotmail.com> on 2007/03/30 20:06:18 UTC
substring in velocity?
Does anyone know if substring, or an equivalent, work when using java
velocity? I just need to be able to take the first two letters of this one
variable, and use that for a #set statement.
--
View this message in context: http://www.nabble.com/substring-in-velocity--tf3493786.html#a9758212
Sent from the Velocity - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
For additional commands, e-mail: user-help@velocity.apache.org
Re: substring in velocity?
Posted by Will Glass-Husain <wg...@gmail.com>.
all java methods work in Velocity. So:
#set($ref = "abcdefghi".substring(0,3))
should work just fine.
WILL
On 3/30/07, starkutboy <ba...@hotmail.com> wrote:
>
> Does anyone know if substring, or an equivalent, work when using java
> velocity? I just need to be able to take the first two letters of this one
> variable, and use that for a #set statement.
> --
> View this message in context: http://www.nabble.com/substring-in-velocity--tf3493786.html#a9758212
> Sent from the Velocity - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
> For additional commands, e-mail: user-help@velocity.apache.org
>
>
--
Forio Business Simulations
Will Glass-Husain
wglass@forio.com
www.forio.com
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
For additional commands, e-mail: user-help@velocity.apache.org