I have one servlet running with following URL.


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


Here domain is same.

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

Thanks in advance