You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by chamal desilva <ch...@yahoo.com> on 2006/06/19 05:15:14 UTC

Checkling Security

Hi,

How should we test wether a user has permission for an
action. Can we do it in action class or do we have to
do it in EJB tier.

Thanking You,
Chamal.

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Checkling Security

Posted by Richard Yee <ry...@cruzio.com>.
I'd suggest doing it in a filter or a base Action class.

-Richard

chamal desilva wrote:
> Hi,
>
> How should we test wether a user has permission for an
> action. Can we do it in action class or do we have to
> do it in EJB tier.
>
> Thanking You,
> Chamal.
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
>   


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Checkling Security

Posted by Paul Benedict <pa...@yahoo.com>.
Struts action mappings also contain a role attribute. This role is checked against HttpServletRequest.isUserInRole.

Adam Samere <as...@rochester.rr.com> wrote: You can use the standard Servlet authorization/authentication mechanism, 
or use a Servlet filter, or use a custom ActionMappings class or common 
base Action subclass if you're bent on handling it within Struts.

-Adam

chamal desilva wrote:
> Hi,
>
> How should we test wether a user has permission for an
> action. Can we do it in action class or do we have to
> do it in EJB tier.
>
> Thanking You,
> Chamal.
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
>   



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org



 		
---------------------------------
Do you Yahoo!?
 Next-gen email? Have it all with the  all-new Yahoo! Mail Beta.

Re: Checkling Security

Posted by Adam Samere <as...@rochester.rr.com>.
You can use the standard Servlet authorization/authentication mechanism, 
or use a Servlet filter, or use a custom ActionMappings class or common 
base Action subclass if you're bent on handling it within Struts.

-Adam

chamal desilva wrote:
> Hi,
>
> How should we test wether a user has permission for an
> action. Can we do it in action class or do we have to
> do it in EJB tier.
>
> Thanking You,
> Chamal.
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
>   



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org