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