Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

RequestDispatch.forward to another context

990719Feb 12 2013 — edited Feb 13 2013
Hi,

I have one servlet running with following URL.

http://www.abc.com/abc/xyz/get?file=kvjdjfkj3w3sdlkfjsf3233

where abc is the application context root and /xyz/get is the servlet url pattern.

Now I want to do the Request Dispatch forward from this servlet to the different servlet which in not running on the same context root.
i.e. I want to do the forward to /proxy/aaa/secondServlet

My new forward URL should not contains the old context root and internal forward url should be look like

http://www.abc.com/proxy/aaa/secondServlet

Here domain is same.

Please help me with the how i can achieve this use RequestDispatcher forward.

Thanks in advance
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 13 2013
Added on Feb 12 2013
3 comments
4,551 views