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
Joined: Dec 28, 2001
Posts: 25
posted
0
Hi,
Please post your complete code so that we can understand what you have done.
Suraj
Schandha Ravi
Ranch Hand
Joined: Oct 20, 2007
Posts: 167
posted
0
Hi,
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
Greenhorn
Joined: Feb 22, 2008
Posts: 18
posted
0
Hi, You can use following method:
window.location.reload(); Regards, Ramanuj.
With Regards,<br />Rama
swapnil dangore
Ranch Hand
Joined: Jun 05, 2006
Posts: 46
posted
0
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"