• 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

dynamic JSP pages are not getting refreshed

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The problem is when we access our web application through sun one web server the dynamic JSP pages(contents) are not being refreshed. And when the same web application is accessed directly through application server on which the code resides, we get refreshed JSP pages.
Can some one please tell me as to why, we are not able to see the refreshed JSP pages when trying to access through webserver?

Thanks in advance,
-ps raju
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You question is a little difficult to decipher.

What do you mean when you say "Accessed through sun one web server"?

Are you deploying the same JSPs in different application servers?
Or.. do you mean that they don't refresh when accessed from a browser in a certain machine?
 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Your question though is not very clear.
But i can give you some direction where to head.
Check out for the Tomcat conf entry, or any other servlet engine configuration, which you may be using.

There is an entry in case of Tomcat, which has a name "reloadable".By default, it is set to "false". If you make it "true", the thing works.

Check out for one such entry in the configuration file.

Asset
 
Ranch Hand
Posts: 213
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
web server may cache the content. You have to configure the web server to reset the cache. Through heades I think we can do this
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Sarath Mohan:
You have to configure the web server to reset the cache. Through heades I think we can do this



The web server has little to do with it. The "no cache" headers instruct the browser not to cache the pages.
 
Purushottam Srinivas
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have used the following headers in the jsp files...but still caching of dynamic jsp page is taking place.

in Prod_category_selection.jsp
===============================
in the begining of file
<%
response.setHeader("Pragma", "No-cache");
response.setHeader("Cache-Control", "no-cache");
response.setDateHeader("Expires",0);
%>

also in header
<META Http-Equiv="Cache-Control" Content="no-cache">
<META Http-Equiv="Pragma" Content="no-cache">
<META Http-Equiv="Expires" Content="0">

in the body has
<jsp:include page="/am1/en/includes/header.jsp"></jsp:include>

The above header.jsp is not getting refreshed.

To make it more clearer..
when a page is first requested, the request first comes to a webserver(webserver Ip ort/...) and subsequently it is passed to application server(code resides here). In this situtation header.jsp is not getting refreshed.


But when I request for a page dirctly from application server(application server ip ort/....), I see refreshed header.jsp, when browsing through different pages.

I am still facing the problem..can some one please guide me.

thanks,
-ps raju
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic