It is possible for the requestDispatcher to access a resource of another
web application , provided you can get the context of that web application
Assume there are 2 web applications
In webapplication 1 you can use
ServletContext ctx = his.getServletContext().getContext(uripath);
where uripath points to a resource in web application 2
With the context reference obtained , we can wrap the resource using the getRequestDispatcher() method of the context.
Reference:
public ServletContext getContext(java.lang.String uripath)
which says
"This method allows servlets to gain access to the context for various parts of the server, and as needed obtain RequestDispatcher objects from the context. The given path must be begin with "/", is interpreted relative to the server's document root and is matched against the context roots of other web applications hosted on this container"
muthu