JSP page is not getting refreshed after updating. I tried deleting browser cache, but id didn\'t have any effect. Any suggestion is of great help. I am using Tomcat server a
Try deleting all the contents in the jsp and then refresh. Then copy your updated code back once empty jsp shows.
Eclipse/MyEclipse/Netbeans - Just DELETE your old SERVER. And then again create NEW SERVER.
You can put this in your jsp page:
<%
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
%>
It will not cache your page
You checked the configuration of Tomcat?
There's a setting "reloading", which should be set to "true" to allow Tomcat to check for changes to JSP files.
See: http://tomcat.apache.org/tomcat-5.5-doc/jasper-howto.html#Configuration
EDIT: Of course, Eclipse may not be deploying your updated JSP file to the Tomcat folder?
i have a problem like this too. I have searched on google and i find a solutions then solved. I will tell you how can you solved step by step on Eclipse IDE.
\.jar$
to \.jar$|\.class$
Your changes will appear on the screen now. I hope it has helped.
Try to delete the tomcat's work folder contents and then redeploy the application. This worked for me.