This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes JSP and the fly likes JSP DataBase Connection Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "JSP DataBase Connection" Watch "JSP DataBase Connection" New topic
Author

JSP DataBase Connection

Subhash Pavuskar
Ranch Hand

Joined: Jun 29, 2011
Posts: 57

In my JSP page i wrote this code for Retrieving and inserting in to the database,here retrieving works perfectly but when i am trying to insert to the database its not getting inserted can anyone please help me on this?

here is the code :
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19672
    
  18

It would help if you would print the actual error message and not some String that only says if it succeeded or not. This way you never get to know why it failed.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
 
subject: JSP DataBase Connection