This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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
 
Similar Threads
coding for response to enter button on keyboard
start/stop tomcat
To put 2 applets on Web page
suggest books (urgent)
Printing Crystal Rpt on client side in ASP pg