Re: How to use s:if

2008-12-11 Thread Lukasz Lenart
2008/12/11 <[EMAIL PROTECTED]>: > But doesn' t work neither. > > The else part is displayed everytime. You can try something like this Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: [EMAIL PROTECTED]

Re: How to use s:if

2008-12-11 Thread Dirk Forchel
First of all I recommend reading a tutorial about Struts2 and OGNL. but to answer your questions, you have to add a form property to your POJO action class (don't miss the getter and setter methods) first: public class ShowAction extends ActionSupport { public boolean all = false; public void s

Re: How to use s:if

2008-12-11 Thread Lukasz Lenart
2008/12/11 <[EMAIL PROTECTED]>: > http:/appsever:8080/myapp/showaction?all=true > in my jsp I want to use the s:if to display different strings > i.e. > > ... > But how to write the test condition? Check with docs [1], it should be > By the way. What does the % in a condition like %{test} > An