Hello Everyone!!! I have 2 web applications Demo1 & Demo2. In Demo1 I have a servlet First. & in Demo2 I have a servlet second. I want to forward the request from Demo1 applications First servlet to Demo2 applications second servlet. Can anyone help me out?
You want to forward the request, or do you just want to invoke the second Servlet?
What is it about the request object that needs to be passed to the second web application? A parameter? An input field.
Remember, web modules are logically separated for a reason. A separate web module could be on a remote server just as easily as it could be on a local server. If there's a total need to forward the actual request, maybe the two servlets should be in the same war file.
But you can simply invoke the second Servlet from the first Servlet. That's possible.