Sourced from
http://www.vitarara.org/cms/struts_2_cookbook/creating_a_login_interceptor
//put the address of the action called originally into the session
String urlGoingTo =
invocation.getProxy().getNamespace()+"/"+invocation.getProxy().getActionName()+".action";
attributes.put( "GOING_TO", urlGoingTo);
-----Original Message-----
From: Célio Cidral Junior [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 23, 2007 3:52 PM
To: Struts Users Mailing List
Subject: [S2] How to get the requested path from an interceptor
Is it possible to get the requested path from inside an interceptor?
For instance, the following url was requested:
http://myhost:8080/mywebapp/private/admin/json/companies.action
So, from the interceptor, how can I get the
"/private/admin/json/companies.action" part from that url? I searched across
the ActionInvocation object but could not come with a solution.
Regards,
Célio
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]