struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nicolas De Loof" <nicolas.del...@cgey.com>
Subject Re: <logic:equal> with sessionAttributes
Date Tue, 01 Jul 2003 08:50:29 GMT
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


Mime
View raw message