I am afraid there are a few problems.
If an exception is thrown it just sends you back to the registration page, which is fine but nowhere do you store/show the details of the exception thrown.
This is actually critical information when trying to fix a problem. You need to display the stack trace somewhere somehow.
neelima mullapudi wrote:plzz help me ... thank q in advance
Please use real words when posting to the forums. Abbreviations such as "plzz" in place of "please" and "q" in place of "you" only serve to make your posts more difficult to read and less likely to generate useful responses.
Hi , Neelima ,
Why dont you use MVC for such critical operation that is dealing with Database?
You can write simple Servlet and Java class that will handle your request.
your data base activity should follow below steps , and if your code is in MVC it will better to track where is actual error is coming and
above to maintain your code will be so easy.
hi, I think it is giving error because for 'contno', she might have taken integer type in database and trying to insert string type. She need to use setInteger() method instead of setString().