File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Error 404

R Mousavi

Joined: Sep 27, 2005
Posts: 7

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.

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

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

I had the servlet in there but i had forgotten the mapping
I agree. Here's the link:
subject: Error 404
It's not a secret anymore!