Manipulating Strings with Struts²

2010-05-17 Thread Michaël JERUSALMI

Hi everyone,

I'm working on a Java Web App under Struts², and i'm having trouble using the 
taglib s:if.
I have a test s:if, but instead of writing a test like this s:if 
test=string == myValue,
I'd like to write something like this : s:if test=string.contains(myValue) 
, or using a substring function
Do such functions exist ? How to use it ?
Thanks for your help.

Michael
  
_
Installez gratuitement les nouvelles Emoch'ticones !
http://www.ilovemessenger.fr/emoticones/telecharger-emoticones-emochticones.aspx

Re: Manipulating Strings with Struts²

2010-05-17 Thread Lukasz Lenart
2010/5/17 Michaël JERUSALMI michaelj...@hotmail.com:
 I'm working on a Java Web App under Struts², and i'm having trouble using the 
 taglib s:if.
 I have a test s:if, but instead of writing a test like this s:if 
 test=string == myValue,
 I'd like to write something like this : s:if 
 test=string.contains(myValue) , or using a substring function
 Do such functions exist ? How to use it ?

Yes, with OGNL, please check that tutorial:
http://www.roseindia.net/struts/struts2/struts2controltags/if-else.shtml


Regards
-- 
Łukasz
http://www.lenart.org.pl/
Kapituła Javarsovia 2010
http://javarsovia.pl

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org