wood burning stoves 2.0*
The moose likes JSP and the fly likes Adding of new user is sucessfull and present in the datebase but not showing in the list Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Adding of new user is sucessfull and present in the datebase but not showing in the list" Watch "Adding of new user is sucessfull and present in the datebase but not showing in the list" New topic
Author

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

sandeep kethe
Greenhorn

Joined: Jan 11, 2009
Posts: 14
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

Joined: Sep 30, 2008
Posts: 198
Did you re-populate the list after adding a new record?


My Blog
Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
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

Joined: Jan 11, 2009
Posts: 14
YA everything is closed......i have checked it once again..
Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
Then you just need to reload the list from the DB.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Adding of new user is sucessfull and present in the datebase but not showing in the list