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