You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by xianwinwin <xi...@gmail.com> on 2008/03/04 19:53:38 UTC
howto 'transfer' a URL parameter to an interceptor (eg
resourceID=44) pic included
Hi all,
I'm trying to create an AuthorizationInterceptor.
consider the following scenario: The user clicks on any link and the the
link has resourceID
eg: doSomthig_update.do?resourceID=44
I would like to transfer the resouceID to my interceptor in order to verify
if the user is entitle to view resourceID=44.
http://www.nabble.com/file/p15834496/2003747819598530439_fs.jpg
THANKS for any pointers!
--
View this message in context: http://www.nabble.com/howto-%27transfer%27-a-URL-parameter-to-an-interceptor-%28eg-resourceID%3D44%29-pic-included-tp15834496p15834496.html
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: howto 'transfer' a URL parameter to an interceptor (eg resourceID=44) pic included
Posted by Nils-Helge Garli Hegvik <ni...@gmail.com>.
I don't think you can even do it that way. It's easier to just access
the parameter map from the ActionInvocation and ActionContext in the
interceptor.
http://www.opensymphony.com/xwork/api/com/opensymphony/xwork2/interceptor/Interceptor.html#intercept(com.opensymphony.xwork2.ActionInvocation)
http://www.opensymphony.com/xwork/api/com/opensymphony/xwork2/ActionInvocation.html#getInvocationContext()
http://www.opensymphony.com/xwork/api/com/opensymphony/xwork2/ActionContext.html#getParameters()
Nils-H
On Tue, Mar 4, 2008 at 7:53 PM, xianwinwin <xi...@gmail.com> wrote:
>
> Hi all,
>
> I'm trying to create an AuthorizationInterceptor.
>
> consider the following scenario: The user clicks on any link and the the
> link has resourceID
>
> eg: doSomthig_update.do?resourceID=44
>
>
> I would like to transfer the resouceID to my interceptor in order to verify
> if the user is entitle to view resourceID=44.
>
>
> http://www.nabble.com/file/p15834496/2003747819598530439_fs.jpg
>
>
> THANKS for any pointers!
> --
> View this message in context: http://www.nabble.com/howto-%27transfer%27-a-URL-parameter-to-an-interceptor-%28eg-resourceID%3D44%29-pic-included-tp15834496p15834496.html
> Sent from the Struts - User mailing list archive at Nabble.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