This week's book giveaway is in the General Computing forum. We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line! See this thread for details.
unable means data submitted from the form is not storing in database.
i'm getting the below error while trying to send the data
The requested resource (/test/InsertRegtodb) is not available.
here test is project name and InsertRegtodb is servlet name.
i'm expecting this code to store data into registration table in database
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35438
9
posted
0
Seems like the URL you're trying to submit the form to doesn't exist. At first glance the servlet accepts GET requests, whereas the form submits a POST - so that wouldn't work right off the bat. Servlet code that writes ot the DB should never be accessed via GET - so the form does the right thing, but the servlet isn't set up properly.
no actually the servlet is present is the mentioned address. but it is not connecting to it
there is one more servlet in the same folder and which is accessible from another jsp. but tis servlet is not accessible even though i have used same code as it is used for the servlet which worked for me previously
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35438
9
posted
0
no actually the servlet is present is the mentioned address.
How do you know? The evidence suggests that it is not, yes? Maybe the web.xml is set up incorrectly? Maybe there's an error during initialization?