On Mon, 13 Aug 2001, August Detlefsen wrote:
> How do I get the original request URI or path after a page has been
> forwarded using pageContext.forward()?
>
> The webapp I'm developing uses pageContext.forward() to send requests
> to different JSPs for processing (for example to send someone to a
> login page if they are not logged in), but once they are forwarded
> methods such as:
>
> request.getRequestURI()
> request.getServletPath()
> HttpUtils.getRequestURL(request)
>
> only return info relevant to the new page.
>
> How do I get the info for the original page?
>
Save the request URI of the original page in a request attribute before
you do the forwarding.
> Thanks,
> August
>
Craig