File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • 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

 
sandeep kethe
Greenhorn
Posts: 14
  • 0
  • 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
 
Vinod K Singh
Ranch Hand
Posts: 198
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you re-populate the list after adding a new record?
 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • 0
  • 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
  • 0
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Then you just need to reload the list from the DB.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic