struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Newton <davelnew...@gmail.com>
Subject Re: Performing Shiro Authorization Checks inside a Struts2 Action Class
Date Wed, 10 Aug 2011 16:03:33 GMT
On Wed, Aug 10, 2011 at 10:49 AM, <mmckenzie@wernervas.com> wrote:

> Struts will ignore the shiro annotations which is expected .
>

Not sure what that means.


>        @RequiresPermissions("account:create")
>        public String createAccount(){
>
> Is it possible to get configure struts to process the annotation?
>

Process them how?


> Is it possible to create a custom annotation that struts will process?
>

Why create another one?


> Is my only option to use an interceptor that will process the shiro
> annotations?
>

Isn't that the best option, since it's precisely what you want? (Assuming I
understand your problem statement correctly.)

Dave

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message