Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Error 404

 
R Mousavi
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 724
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Could you show us the servlet mapping in web.xml?
 
R Mousavi
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
SERVLET-MAPPING!!! lol.. thanks.

I had the servlet in there but i had forgotten the mapping
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic