Originally posted by Vladan Radovanovic:
Can someone give me some pointers how to forward the request to a servlet or a jsp page but in *different* web Application?
You can only forward a request to a web-app inside the same engine. As you know, a RequestDispatcher will only work for a specific context (web-app). The trick is to
first get the context for the web-app you want to forward to, and
then get the RequestDispatcher from that context.
Say your other web-app root is "/your/other/web/app/root", and the servlet you want to forward to is "/servlets/theServlet" (its URI is "/your/other/web/app/root/servlets/theServlet").
If the servlet runs on a different server, you've got no choice but to use sendRedirect.
- Peter