• 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:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Caching Problem in JSP ... Please help

 
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hai All,
I am working on a JSP Project and i am facing severe problems of JSP caching , any change made to the JSP page is not reflected immediately even after refresh, as a result the J2EE server has to be restarted. Can any body tell me please how to control this caching problem programatically i.e. clearing the cache ..waiting for reply.....
thanks in advance
santosh
 
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
try this
response.setHeader("Pragma","no-cache");
if(request.getProtocol().equals("HTTP/1.1")
response.setHeader("Cache-Control",no-cache");
hope this helps
sanj
 
santosh vashist
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by sanj singh:
try this
response.setHeader("Pragma","no-cache");
if(request.getProtocol().equals("HTTP/1.1")
response.setHeader("Cache-Control",no-cache");
hope this helps
sanj



Hello Sanj
thank you for your early reply , i implemented the same and its working fine but one more problem is its not working in Netscape Navigator. Yar can you please tell me what i should i do in netscape.Hoping for early reply...

regards,
santosh
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic