ActionMapping.getInputForward() will also forward to url from where you have come.
just check if it is requir3ed to use "input attribute in action mapping in struts-congig.xml -----Original Message----- From: Monkeyden [mailto:[EMAIL PROTECTED] Sent: Monday, August 14, 2006 7:54 PM To: Struts Users Mailing List Subject: Re: How to convert absolute URL to context-relative URL? 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]