Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSP DataBase Connection

 
Subhash Pavuskar
Ranch Hand
Posts: 57
Chrome Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 20495
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic