How should my web.xml be ? [message #92414] |
Mon, 05 July 2004 04:42 |
Amith p Jayanthilal
Messages: 5 Registered: June 2004
|
Junior Member |
|
|
Hi,
I have a servlet application. In my application, I make a call to my servlet through my index.html as follows:
FORM TAG REMOVED Action="/greeting/servlet/GreetingServlet" method="POST">
I also pass the values "name" and "email" through index.html
I have my servlet located at "D:AmithServlet ApplicationsgreetingWEB-INFclasses"
I have added following lines in my server.xml
<Context path="/greeting" docBase="D:AmithServlet Applicationsgreeting">
</Context>
The application runs fine with Tomcat 3.3.2 without web.xml
But when i try to run the application with Tomcat 5.0.24, I get the error
"HTTP Status 404 - /greeting/servlet/GreetingServlet"
Can anyone help me with this. Should i have web.xml for this. If yes, how should my web.xml be ?
Please help, I am unable to solve this problem from a very long time. I am really struck !!!
Thanks,
ammmi
|
|
|