aspose file tools *
The moose likes Servlets and the fly likes Error 404 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Error 404" Watch "Error 404" New topic
Author

Error 404

R Mousavi
Greenhorn

Joined: Sep 27, 2005
Posts: 7
Hi,

I have been having some trouble getting my .html form to submit. I am trying to submit it to a servlet, which processes it and sends the user to the next step.

However, when i try to access the servlet using the form with...
<form method="post" action="/mywebapp/servlet/com.myapps.request">
It gives me HTTP Status 404. Which as far as i know means the page is unavailable.

I have placed this in my web.xml already and have tried to access it as a get method too (by typing http://localhost:8080/mywebapp/servlet/eg.myapps.request).

Could anyone help me try to solve this? thanks alot.

Reza
David Ulicny
Ranch Hand

Joined: Aug 04, 2004
Posts: 724
Could you show us the servlet mapping in web.xml?


SCJP<br />SCWCD <br />ICSD(286)<br />MCP 70-216
R Mousavi
Greenhorn

Joined: Sep 27, 2005
Posts: 7
SERVLET-MAPPING!!! lol.. thanks.

I had the servlet in there but i had forgotten the mapping
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Error 404