Abhijeet Garde

Greenhorn
+ Follow
since Jan 21, 2006
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Abhijeet Garde

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.
18 years ago