I have a servlet which forwards a request using RequestDispatcher's forward method (uses a relative url of /mypc/login.jsp) and I get 404 with tomcat message saying:
type Status report
message /mypc/login.jsp
description The requested resource (/mypc/login.jsp) is not available.
The servlet url is:
http://kickball:8080/mypc/servlet/Auth
I am using jboss 2.4.6 and tomcat 4.0.3.
But if I type the url: http://kickball:8080/mypc/login.jsp
in the browser, it works fine. Why is the forwarding thru servlet not working ?
--Navjeet
Your application's context is /mypc, isn't it? if so, you should write the url without the context path because the server has known it. e.g. write request.getRequestDispatcher("/pclogin.jsp")