I am using a JSP which does not pick up changes when I do a refresh in IE. I am using Tomcat 5.0. I read in one forum that this problem could be because of some static code inside my JSP.
I cleared the history, deleted all cookies and cleared my cache and it still didnt work.
In order for it to pick up changes, I have to delete the file from my jsp folder and then do a refresh till the page is not found, then copy the file back to the folder and then access it.
Could anyone tell me if this is a problem with tomcat or is there something I am missing?
There aren't many rules that you need to worry about here on the Ranch, but one that we take very seriously regards the use of proper names. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.
In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.
Thanks! bear Forum Bartender [ December 08, 2005: Message edited by: Bear Bibeault ]
One thing that can cause this is a system clock being off. Tocmat will check each JSP to see if the generated code and class are older than the source file. If so, it will regenerate. I've had new JSPs not get compiled after moving them to a server in another time zone.
Deleting the tomcat/work directory will force Tomcat to recompile all JSPs.
I may be wrong but this can be one of the solution of not caching the jsp pages <% response.setHeader("Cache-Control","no-cache"); //HTTP 1.1 response.setHeader("Pragma","no-cache"); //HTTP 1.0 response.setDateHeader ("Expires", 0); //prevents caching at the proxy server %>
Insert this code in the your jsp page
With Regards Pankaj
Regards,
Pankaj Patil
Gonzalo Nadal
Greenhorn
Joined: Dec 08, 2005
Posts: 15
posted
0
As pankaj patil say, this must make your browser refresh your jsps.
Remember include in the jsp that load in iframes. [ December 09, 2005: Message edited by: Gonzalo Nadal ]
L'essentiel est invisible pour les yeux.(Le petit prince)
What is essential is invisible to the eyes.(The Little Prince)
Lo esencial es invisible a los ojos. (El principito)