Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Refreshing a web page using servlets/JSP

 
Satyashree Mahapatra
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 140
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic