How to call servlet from jsp?

Posted on 2008-10-14
Last Modified: 2013-11-24

I have a jsp page with a form

<form name="form" method="POST" action="Registration" onsubmit="return Validation();">

In web.xml

In servlet, I use public void doPost(HttpServletRequest request, HttpServletResponse response) to get the form data

However, when I click the submit button in jsp

it shows HTTP Status 404 error. The requested resource (/eshop/Registration) is not available.

How should I do it?

Question by:techques
  • 2
LVL 20

Expert Comment

by:chaitu chaitu
ID: 22717656
u need to do servlet mapping in web.xml
LVL 20

Accepted Solution

chaitu chaitu earned 50 total points
ID: 22717663

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
changeXy challenge 13 82
eclipse argument 14 60
servlet doXXX methods 3 49
tomcat not starting 6 45
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question