You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Filip Polsakiewicz <Fi...@innoface.de> on 2003/07/01 10:28:27 UTC
with sessionAttributes
Hi,
i need to check for the value of a specific session Attribute. I know that i
can use <logic:equal> with request-parameters. Now how would i check if a
session attribute "foo" equals the value of "bar"?
Thanks Filip
RE: with sessionAttributes
Posted by Filip Polsakiewicz <Fi...@innoface.de>.
Thanks. I will try that.
> -----Original Message-----
> From: Nicolas De Loof [mailto:nicolas.deloof@cgey.com]
> Sent: Tuesday, July 01, 2003 10:50 AM
> To: Struts Users Mailing List
> Subject: Re: <logic:equal> with sessionAttributes
>
>
> use the "scope" attribute (it is the same for lot's of struts tags)
>
> <logic:equal name="foo" scope="session" value="bar">
> ...
> </logic:equal>
>
> http://jakarta.apache.org/struts/userGuide/struts-logic.html#equal
>
> Notice Struts will automatically look in scopes for you if you
> don't use scope :
> page -> request -> session -> application
>
> Nico.
>
>
>
> > Hi,
> > i need to check for the value of a specific session Attribute.
> I know that i
> > can use <logic:equal> with request-parameters. Now how would i
> check if a
> > session attribute "foo" equals the value of "bar"?
> >
> > Thanks Filip
> >
> >
> >
> >
>
>
> ------------------------------------------------------------------
> --------------
>
>
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: with sessionAttributes
Posted by Nicolas De Loof <ni...@cgey.com>.
use the "scope" attribute (it is the same for lot's of struts tags)
<logic:equal name="foo" scope="session" value="bar">
...
</logic:equal>
http://jakarta.apache.org/struts/userGuide/struts-logic.html#equal
Notice Struts will automatically look in scopes for you if you don't use scope :
page -> request -> session -> application
Nico.
> Hi,
> i need to check for the value of a specific session Attribute. I know that i
> can use <logic:equal> with request-parameters. Now how would i check if a
> session attribute "foo" equals the value of "bar"?
>
> Thanks Filip
>
>
>
>
--------------------------------------------------------------------------------
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org