hi i am a novice user of jsp and servlet...
i try to submit a jsp to a servlet, using a submit button.. when i
click the submit button, i get an error that,
HTTP Status 404 - /admin-gui/servlet/
type Status report
message /admin-gui/servlet/
description The requested resource (/admin-gui/servlet/) is not
available.
in jsp page, my action and method are,
method="post" action="/admin-gui/servlet/ControlServlet"
how ever, i am able to submit to another jsp file , like,
"/admin-gui/PolicyMenu.jsp" in action
... i am using Apache Tomcat 5.5.9 Server and my servlet is in,
C:\Tomcat 5.5\webapps\admin-gui\WEB-INF\classes
and my jsp files are in,
C:\Tomcat 5.5\webapps\admin-gui
my web.xml contains
<servlet>
<servlet-name>ControlServlet</servlet-name>
<servlet-class>ControlServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>ControlServlet</servlet-name>
<url-pattern>/servlet/ControlServlet</url-pattern>
</servlet-mapping>
if you require any more details, please ask me..
thanks in advance
sarath
sarath - 13 Jun 2005 12:39 GMT
sorry.. i myself got the answer.. i had not given request dispatcher in
the servlet, which caused the error...
regards
sarath