This content has been marked as final. Show 3 replies
Using a Request Dispatcher of the servlet context allows you to forward or include resources within that context only.
For foreign contexts, you will have to first obtain the context of the other application and then call forward on it.
And you will have to check your server documentation on how to achieve cross context functionality. In weblogic, its available by default whereas in tomcat, it has to be specifically enabled in the context.xml file.
ServletContext otherCtx = thisContext.getContext("other context name"); otherCtx.forward("path")
Why dont you do a simple redirect ?