• Post Reply Bookmark Topic Watch Topic
  • New Topic

dynamic JSP pages are not getting refreshed

 
Purushottam Srinivas
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • 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
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • 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?
 
Seth Anshul
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • 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
 
Sarath Mohan
Ranch Hand
Posts: 213
  • Mark post as helpful
  • send pies
  • 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
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65522
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • 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
  • 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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!