You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by rainer jünger <ju...@projektinter.net> on 2002/07/12 16:03:08 UTC

tag to check value of bean

Hi,

can I compare an attribute value of a bean with the logic TagLib?

eg.:
my beans name is myobject and it has session scope
Wirthin that bean there is an attribute:
boolean myattribute = true;
There is of course a setter and a getter for that attribute.

How would the logic tag look like??


My suggestion that doesn't work:
<logic:equal name="myobject" property="myattribute" scope="session" value="true">
   my output
 </logic:equal>

thanks!! Rainer