struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Session A Mwamufiya" <smwam...@andrew.cmu.edu>
Subject How to check an action variable with s:if
Date Wed, 08 Aug 2007 06:26:18 GMT
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@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message