aspose file tools*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 19538

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
I agree. Here's the link:
subject: JSP DataBase Connection
Similar Threads
How to update a data in database from jsp
Problem in inserting data into oracle db from jsp
Redirct page in Tilse with JSTL
when i retrive data from access it showing empty page in tomcat