Hi,
I have an exact scenario like in this thread: http://stackoverflow.com/questions/4889113/how-to-forward-request-from-web1-servlet-to-web2-servlet.
The code from the thread works for me:
ServletContext web1 = getServletContext(); ServletContext web2 = web1.getContext("/web2"); RequestDispatcher dispatcher = web2.getRequestDispatcher("/servlet2"); dispatcher.forward(request, response);
But I'm wondering: is sharing context between two web applications is the default behavior of the SAP J2EE engine?
If yes, where can I config this behavior?
According to the JavaDoc: (ServletContext interface, getContext method):
http://docs.oracle.com/javaee/5/api/javax/servlet/ServletContext.html#getContext%28java.lang.String%29
"In a security conscious environment, the servlet container may return null for a given URL. "
How do I make my environment "security conscious"?
J2EE server is 7.31 SP7.
Regads,
Omri