Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

No exceptions but getting problem while storing data(Servlet and JDBC)

 
naresh San
Greenhorn
Posts: 7
Java Linux Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi...one and all


Here is my problem that i have created one web app that has JDBC connectivity.I have a problem while storing data even servlet works fine with proper validation of text fields.
I have n't seen any kind of exceptions and errors in Tomcat running console while requesting the web application...




Register.html


<html>
<head><title>Rigister</title>
<h1 align=center> Registration is here</h1></head>
<body>
<form mothod=GET action="Register1">
<table align=center>
<tr>
<td>Firstname:<input type=textbox name=t1></td>
</tr>
<tr>
<td>LastName:<input type=textbox name=t2></td></tr>
<tr>
<td>Username:<input type=textbox name=t3></td></tr>
<tr>
<td>Password:<input type=textbox name=t4></td></tr>
<tr>
<td>Retypepassword:<input type=textbox name=t5><br>
<input type=submit value=Register></td></tr>
</table></form></body></html>


Register.java




Web.xml



...
As i have only theory knowledge i wonna make simple webapllication ...please kindly give me solution.And why this page could n't store the values even it can validate the values entered in fields and giving the result like what i have given HTML coding in Regiter.java


...

Thanks in Advanc...
 
amit punekar
Ranch Hand
Posts: 544
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
To start with please print stacktrace in catch block that surrounds Connection creation and query execution.
This will show you what is happening in your application.

Regards,
amit
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic