File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes how to reload a jsp page ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "how to reload a jsp page ?" Watch "how to reload a jsp page ?" New topic

how to reload a jsp page ?

shahidrasul shahid
Ranch Hand

Joined: Jan 28, 2008
Posts: 62
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

Joined: Dec 28, 2001
Posts: 26

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

Schandha Ravi
Ranch Hand

Joined: Oct 20, 2007
Posts: 167

I think ,you can always use REFRESH element in your META tag in HTML to refresh for auto refreshing the page.

Thanks & Regards, SK
SCJP 5.0, DB2 - 800, DB2 - 803, SCDJWS (On the way)
Ramanuj Kumar

Joined: Feb 22, 2008
Posts: 18
You can use following method:


With Regards,<br />Rama
swapnil dangore
Ranch Hand

Joined: Jun 05, 2006
Posts: 46
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.

Cheers<br />-------------<br />Swapnil<br /> <br />SCJP5-81%<br /> <br />"Dictionary is the only place where Success come before Work"
shahidrasul shahid
Ranch Hand

Joined: Jan 28, 2008
Posts: 62
thanks all members.
I agree. Here's the link:
subject: how to reload a jsp page ?
It's not a secret anymore!