wood burning stoves 2.0*
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
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: 19653
    
  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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSP DataBase Connection
 
Similar Threads
Java-JSP
when i retrive data from access it showing empty page in tomcat
Redirct page in Tilse with JSTL
How to update a data in database from jsp
Problem in inserting data into oracle db from jsp