• Post Reply Bookmark Topic Watch Topic
  • New Topic

Adding of new user is sucessfull and present in the datebase but not showing in the list  RSS feed

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI

I have an Addnew.jsp.After clicking the submit button in jsp values are added to the database but those values are not present in the list


Thanks in advance



Regards
Sandy
 
Ranch Hand
Posts: 198
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you re-populate the list after adding a new record?
 
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you commit the DB transaction and close the DB connection? Otherwise changes are only reflected if the connection times out -which on its turn is already a bad idea, you should acquire and close the connection (and statement and resultset) in the shortest possible scope.
 
sandeep kethe
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
YA everything is closed......i have checked it once again..
 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Then you just need to reload the list from the DB.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!