Win a copy of Terraform in Action this week in the Cloud forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

Refreshing a web page using servlets/JSP

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 140
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic