s:property and s:if tag

2008-07-22 Thread Kibo
Hi konference I am already helpless. How can I test the property in s:if tag? - s:iterator id=comp value=%{components} s:property value=%{sort} /

Re: s:property and s:if tag

2008-07-22 Thread ManiKanta G
s:property / is like out.println(). It is useful for printing (outputs) some value, but not to store a value. To store a value in to the value stack (coz this is S2), you may use s:set name= value= / where the name attribute indicates the name of the variable and the value indicates the value

Re: s:property and s:if tag

2008-07-22 Thread Kibo
Hi ManiKanta G Thank for you replay. It help me. But, the problem was in wrong return dateType. The code below work correct. --- s:iterator value=%{page} s:property value=label /

Re: s:property and s:if tag

2008-07-22 Thread ManiKanta G
Hi, I think 'sort' value is available from action class. If yes, when it is directly available from action, you do not need to use s:set /. U can use the value from action itself. ManiKanta Kibo wrote: Hi ManiKanta G Thank for you replay. It help me. But, the problem was in wrong return

Re: s:property and s:if tag

2008-07-22 Thread Kibo
s:iterator id=comp value=%{components} s:set name=sort value=%{sort + ''} / s:if test=%{#sort eq 'PRODUCT'} OK /s:if /s:iterator