This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "how to reload a jsp page ?" Watch "how to reload a jsp page ?" New topic
Author

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
Greenhorn

Joined: Dec 28, 2001
Posts: 26
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
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
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
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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: how to reload a jsp page ?
 
Similar Threads
jsp and forms
Struts: ComboBox onChange action
run other jsp without reload current page
i need default page when reload(refresh) the jsp page
reload opner window javascript