Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to reload a jsp page ?

 
shahidrasul shahid
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i hava menu for delete , view , edit and activate users

when i click on delete , record of that user delete from database

but it shows on page

when i fresh page it remove from page.


can any body tell me to reload a jsp page without error?
thanks advance.
 
Suraj Berwal
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Please post your complete code so that we can understand what you have done.

Suraj
 
Schandha Ravi
Ranch Hand
Posts: 167
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I think ,you can always use REFRESH element in your META tag in HTML to refresh for auto refreshing the page.
 
Ramanuj Kumar
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
You can use following method:

window.location.reload();
Regards,
Ramanuj.
 
swapnil dangore
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi shahidrasul ,
You might have written your user deletion logic in DAO. Once you delete the user from database , retrive a users again from database(or delete the required user from the existing list).
After this , forward the control to the same jsp , with the updated user list.
 
shahidrasul shahid
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks all members.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic