all java methods work in Velocity.   So:

#set($ref  = "abcdefghi".substring(0,3))

should work just fine.

WILL

On 3/30/07, starkutboy <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
Forio Business Simulations

Will Glass-Husain
[EMAIL PROTECTED]
www.forio.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to