Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

adding to a database using a servlet

 
J Derzaph
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't know if this is the right place to this question but I couldn't find a mysql forum. So, here goes...
I have a servlet that connects to a database. It connects just find, can search and return results but I can't get it to add a record. It doesn't throw any exceptions, it looks like its adding the record but when I check the database it isn't there.
I'm probably missing something really obvious but I'm stumped. Anyone have any ideas?
 
prash patil
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi J Derzaph ,
Can you add your servlet code? so it will be easy to look your problem..

regards,
PP
 
sudhir nim
Ranch Hand
Posts: 212
Eclipse IDE Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Probably its the bug in your jdbc code.
 
Yashpal Rawat
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please ensure you are doing database commit in your servlet code.
 
Shrikant Kesarkar
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
might be mysql database engine problem i.e. the code you are using
for saving object is not in accordance with mysql engine which is in use.
Try changing from innodb to myisam or vice versa.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Yashu23",
Please check your private messages regarding an important administrative matter.
-Ben
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic