File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "JSP DataBase Connection" Watch "JSP DataBase Connection" New topic

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

Joined: Oct 27, 2005
Posts: 19847

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.

How To Ask Questions How To Answer Questions
It is sorta covered in the JavaRanch Style Guide.
subject: JSP DataBase Connection