Hi,
(I work on Tomcat 5.0.30).
When my servlet (http://myVhost/proxy/testProxy) forward to another servlet :
try {
ServletContext ctx = getServletContext();
ctx = ctx.getContext(/myNewContext);
RequestDispatcher dispatcher = ctx.getRequestDispatcher(/myNewServlet);
getRequestDispatcher() will always return a servlet. (The default servlet)
-Tim
Lionel Farbos wrote:
Hi,
(I work on Tomcat 5.0.30).
When my servlet (http://myVhost/proxy/testProxy) forward to another servlet :
try {
ServletContext ctx = getServletContext();
ctx = ctx.getContext(/myNewContext);
Yes : it's my problem.
ctx.getContext(/myNewContext) always return a Context (even if myNewContext
is not deployed :-(
and
ctx.getRequestDispatcher(/myNewServlet) always return a dispatcher (even if
myNewServlet is not here :-(
So How can I avoid a 404 ?
On Wed, 02 Mar 2005 10:24:37 -0500
Tim