Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Struts 2 »

How to check an action variable with s:if

Session Mwamufiya

2007-08-08

Replies:

Hi,

I've been trying for some time to get the following logic to work:

<s:if test="freshSmigFlag == false">
<s:checkbox key="overwriteCheckbox" name="overwriteCheck"></s:checkbox>
</s:if>

where "freshSmigFlag" is a variable in my action, and there is a getter and setter defined for it.

I also tried to surround the variable with the property tag as such:
<s:if test="<s:property id='freshSmigFlag'/> == false">

But that didn't work either.

Any ideas how we're suppose to write this?

Thanks,
Session


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.