| Author |
No exceptions but getting problem while storing data(Servlet and JDBC)
|
naresh San
Greenhorn
Joined: Nov 01, 2011
Posts: 7
|
|
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
Joined: May 14, 2004
Posts: 488
|
|
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
|
 |
 |
|
|
subject: No exceptions but getting problem while storing data(Servlet and JDBC)
|
|
|