This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Hi all... I am not able to insert the record into the database. I use able to execute my select statement . So to check the error i use System.out.println(). Using that i was able to get output just before line 1 . Below is my code.
My printStackTrace gives the following error
I am not able to locate the error in my insert statement. Can anybody help me out. Thanks in advance Ramya.A
you posted the same query in Servlets forum with code. Problem
persists even after the INSERT statement have been corrected. So, to be
sure of everything I insists
==> to check whether the getConnection is declared a static method
==> to check whether the output statements of the getConnection are being
==>to override a doGet() or doPost() rather service() method as this could
pose a series of internal problems
Joined: Jan 24, 2005
Thanks amar...... My getConnection() is declared static only. I am able to manually enter the value into the data base. Say for like String sql = "Insert into EntryTable values('ramya','jp','beach'); where ramya,jp,beach are the value i wanted to insert into the database.
The problem arises when i try to take the data from my html page and then insert into the database.
To make sure whether i am able to get the data from html page i outputted the data in my console using System.out.println().
I was able to get the data output from the html page into my console. I dont know other than these what are the things i should take care off.