aspose file tools*
The moose likes Servlets and the fly likes Refreshing a web page using servlets/JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Refreshing a web page using servlets/JSP" Watch "Refreshing a web page using servlets/JSP" New topic
Author

Refreshing a web page using servlets/JSP

Satyashree Mahapatra
Greenhorn

Joined: Jul 18, 2000
Posts: 10
Hi,
The need is to refresh a web page based on events on the server side. Is there a way to do it ?
Thanks
satya
Vikas Aggarwal
Ranch Hand

Joined: Jun 22, 2001
Posts: 140
Just send the response from the server side to the JSP/servlet to be refreshed. For that use response.sendRedirect("<jsp-name>");
For better results in the case of JSP... in the jsp to be refreshed use <%response.setHeader("Cache-Control","no-cache");%>
at the top after nothing.

Originally posted by Satyashree Mahapatra:
Hi,
The need is to refresh a web page based on events on the server side. Is there a way to do it ?
Thanks
satya


------------------
Vikas Aggarwal
Technology Associate
Shakun Global Networks


Vikas Aggarwal

Founder @
Leads and Deals Limited

www.LeadsAndDeals.com
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Refreshing a web page using servlets/JSP