I have two web applications, client and server (attached). In the client web
application, there is a single servlet, ClientServlet which performs an
include to another servlet, ServerServlet, in server web application. This is
done through the following code:
ServletContext serverServletContext =
getServletContext().getContext(SERVER_CONTEXT_ROOT);
RequestDispatcher requestDispatcher =
serverServletContext.getRequestDispatcher(SERVER_SERVLET_PATH);
requestDispatcher.include(httpServletRequest, httpServletResponse);
This portion of the test case works as expected.
The ServerServlet will then attempt to include a jsp file, test.jsp, within
the server web application using the following:
RequestDispatcher dispatcher = httpServletRequest.getRequestDispatcher
("/test.jsp");
dispatcher.include(httpServletRequest, httpServletResponse);
This, however, does not work as expected. Although the dispatcher is not null,
the content of the jsp is not displayed.
Note that if you invoke the ServletServlet directly, without going through the
ClientServlet of the Client web application, the jsp is displayed as expected.
Thoughts?
Scott
-----------------------------------------------------
Shanje.NET
The webmaster's 1st choice for Windows 2003 Hosting
http://www.Shanje.NET/
-----------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]