Since Velocity is using Java, you have access to all of the public
methods of the classes in the java.lang package. String methods are
included.

#set ($string="TehpaoLiu")
$string.substring(0,6)

Barbara Baughman
X2157

On Wed, 25 May 2005, Liu, Teh P wrote:

> Hi All,
>
> I have a string "TehpaoLiu"
>
> Is it possible to just extract "Tehpao" from the above string in velocity?
>
> Any help will be appreciated.
>
> Thanks
>
> - tehpao
>

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

Reply via email to