ajaysharma Posted August 13, 2010 Share Posted August 13, 2010 Hi All,Please help me.Issue: I have created some drillable reports that were working fine with JDK 1.5 and Tomcat 5.5: for IE web browser.I am tring to run same reports on on jdk 6 and tomcat 6. But drilled image does not change in Internet Explorer. Tomcat Version Used: apache-tomcat-6.0.26Obervations:==========1. Image: i am getting in internet explorer on drilling: is old one. On pressing: Ctrl+F5 drillled image changes. Drillable reports works fine in Mozilla Firefox.2. Weird Cause may be: this may issue with flushing of image: "img src="image?image=img_0_0_4";As Tomcat 5.5 uses Jasper libs: jasper-compiler-jdt.jar, jasper-compiler.jar, jasper-runtime.jarAnd Tomcat 6 uses Jasper libs:jasper-el.jar, jasper-jdt.jar, jasper.jar.Tried to implement but not worked; for Obervations 1==============================I put the following line in JSP so that image don't come from Browser cache.<meta http-equiv="expires" content="0"><meta http-equiv="Pragma" content="no-cache"><meta http-equiv=Content-Type content="text/html; charset=windows-1252" /> <%response.addHeader("Cache-Control","no-store");response.setHeader("Cache-Control","no-cache"); //HTTP 1.1response.setDateHeader ("Expires", -1); //prevents caching at the proxy server%>=======================================================================================PLEASE HELP ME OUT ................................................................. ITS URGENT................... HIGH PERIORITY TASK FOR ME=======================================================================================Wating for your inputs..................................................................Ajjjjjjjjjjjjjjjjuuuuuuuuuuuuuuuuuuu....................................................................Post Edited by ajaysharma at 08/13/2010 07:18 I think i have to clear net.sf.jasperreports.j2ee.servlets.ImageServlet cache. Looking for how to do it.Post Edited by ajaysharma at 08/13/2010 09:33 Link to comment Share on other sites More sharing options...
ajaysharma Posted August 13, 2010 Author Share Posted August 13, 2010 Caching problem is fixed by using following line:exporter.setParameter(JRHtmlExporterParameter.IMAGES_URI, "/image?x=" + System.identityHashCode(jasperPrint) + "&image="«»); Thanks, Ajjuuu Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now