Hi,Monkeyden;
Thanks for your reply.
Now I can get the context-relative path, but the extension is also
omitted. How to get the path with extension?
Actually, I want to do this.
URL:
/context-name/appname.do?param1=1¶m2=2
I want to get
/appname.do?param1=1¶m2=2
and use this string to new ActionForward to return in Action.
Thanks.
Regards;
Michael
On Mon, 14 Aug 2006 10:24:19 -0400
Monkeyden <[EMAIL PROTECTED]> wrote:
> You may want to look at ActionMapping.getPath().
>
> "Return context-relative path of the submitted request, starting with a
> slash ("/") character, and omitting any filename extension if extension
> mapping is being used."
>
>
> On 8/14/06, Michael Cheung <[EMAIL PROTECTED]> wrote:
> >
> > Hi, all;
> >
> > I get requestURL from request object in Action, then I want to
> > create a ActionForward object for this URL to return.
> >
> > So I have to convert the absolute URL from requestURL to context
> > relative URL. Thanks a lot.
> >
> > Regards;
> > Michael
> >
> >
> > ---------------------------------------------------------------------
> > 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]