struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sven Grünewald <sven.gruenew...@bader-jene.de>
Subject Re: [S2] getting namespace in interceptor
Date Tue, 11 Nov 2008 11:23:18 GMT
I think you could use:
 public String intercept(ActionInvocation invocation){
    invocation.getProxy().getNamespace();
...
Regards,

Sven

Michael Obster schrieb:
> Hi,
>
> is there a way to get the namespace of an invoked action in an 
> interceptor?
> I don't find a way to do that :-(. Anyone has an idea for this problem?
>
> The point is I want to check the users role in the interceptor whether 
> the user is allowed to call the action.
>
> Regards,
> Michael


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


Mime
View raw message