thanks Keith,

you are write, now it works!!
(wrong bean name, I was using the objekt name instead of the stored variable
name within the session context!)

Rainer


> I don't see why that wouldn't work.  I use the same syntax, the only
> difference is that I don't put scope="session".  I suppose you could try
it
> without specifying the scope, but I don't think it would make much of a
> difference.  What is the error message?  Do you import the logic taglib at
> the top of your jsp?
>
> ~ Keith
> http://www.buffalo.edu/~kkamholz
>
>
>
> -----Original Message-----
> From: rainer juenger [mailto:[EMAIL PROTECTED]]
> Sent: Friday, July 12, 2002 11:20 AM
> To: Struts Users Mailing List
> Subject: <logic> 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!!
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>
>
>



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to