10 May
2007
10 May
'07
5:09 p.m.
Hi Evelyne, On May 10, [email protected] wrote :
My question is, how can I apply string transformations (i.e to lowercase, split the string etc) to this variable($input) in velocity? I looked everywhere but I guess I miss something. Please help!
To split a string you may use xwiki.split(String str, String sep) (see com.xpn.xwiki.api.xwiki). I've never tried it myself but it should do the trick. For "lowercasing" I'm not sure if you can do this without calling a java helper function, but i'm really not a velocity expert. Kind regards, Pablo