hi guys,
i have a question relating to
servlet call.
I am using
tomcat for my server.
I am calling a servlet from a html form action
as follows -
<form method="get" action="/myapplication/MyServlet">
<Input types -- >
<-- different input types here--->
< --------->
<input type="submit">
</form>
where myapplication is the name of my folder kept in webapps of Tomcat.
My servlet is kept in WEB-INF/classes, I have not used any package to keep the servlet in, it is directly inside classes.
My deployment discriptor ie web.xml is kept in WEB-INF.
the url mapping is -
<servlet-name>MyServlet</servlet-name>
<servlet-class>MyServlet</servlet-class>
<url-pattern>MyServlet</url-pattern>
but still when I press submit on my html page it gives 404 error and says /myapplication/MyServlet is not available.
please help.
Thanks in advance.