[xwiki-dev] Problem

Youcef BEY youcef.bey at imag.fr
Fri May 11 11:01:40 CEST 2007


Hi Evelina,

The jakarta velocity gives you more information related to your question.

You could also join the velocity forum in : velocity-user.jakarta.apache.org

As for your question, I am using often such kind of transformations:

  - $input.substring(ind1,ind2).toUpperCase() or  $input.toUpperCase()
  - $input.concat("string")
 -  $input.split("string")
 -  etc...

Hope that this answer help you.

Cheers
------------
Youcef

> Hello all,
> I wrote a post on xwiki-users this morning, because someone told me there 
> is where the questions about "how to" are supposed to go, but nobody 
> answered (and I  figured it out by myself, with the help of Sergiu) so 
> I'll try my luck here, as I really need some help.
> In a velocity script I receive a request and I take the value with 
> #set($input =$request.get("param")).
> 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!
> Thank you,
> Evelina Slatineanu
>
>


--------------------------------------------------------------------------------


>
> --
> You receive this message as a subscriber of the xwiki-dev at objectweb.org 
> mailing list.
> To unsubscribe: mailto:xwiki-dev-unsubscribe at objectweb.org
> For general help: mailto:sympa at objectweb.org?subject=help
> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
> 





More information about the devs mailing list