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} /
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
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 /
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
s:iterator id=comp value=%{components}
s:set name=sort value=%{sort + ''} /
s:if test=%{#sort eq 'PRODUCT'}
OK
/s:if
/s:iterator
5 matches
Mail list logo