Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Velocity Template Language - splitting a string

807599Apr 16 2007 — edited Apr 16 2007
Hi probably sounds like a dumb question to all you java developers but I need some assistance in splitting a velocity string please.

My value is the following - $content

For testing purposes I have a added a word 'test' in my string. This is where I would like it split.

I think it's something along the lines of - $content.split("test")
dont know how to return the array values.

Any sort of help would be really appreciated.

Thanks

WGB
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 14 2007
Added on Apr 16 2007
8 comments
1,678 views