Hello Mukta, I would nto advice to disable the Image caching in Tomcat. Since this will affect the performance of the over all server.
Moreover the Internet Browser also cahces the Images. Inorder to solve this problem completely, I used to follow a simple solution. Consider the Image tag is like: <img src="ImageName.gif"> Change this as <% java.util.Date dt = new java.util.Date (); <img src="ImageName.gif?<%=dt.getTime ()%>"> This will result in appending the current time in millisecond in the requested resource. this is mandate the Server / Internet Explorer to refersh the Image everytime it is requested for. Thanks and regards, Pazhanikanthan. P (Paz) Consultant for AXA, HCL Australia Services Pty. Ltd. Off : +61-3-9618-4085 Mob : +61-0411-354-838 "Mukta" <[EMAIL PROTECTED]> 20/06/2006 04:02 PM Please respond to "Struts Users Mailing List" To: "'Struts Users Mailing List'" <user@struts.apache.org> cc: Subject: Image Caching in Tomcat Hi All, I am developing a struts application using JDK version 1.5.0 and Apache Tomcat 5.5 I am using Struts FormFile to upload some images to replace the older ones but when I try to view them in my jsp, it still shows me the older images which have been replaced by the older ones. I have tried using every possible combination of response.setHeader() and HTTP META tags but nothing seems to work for me. Now the only reason that I can think of is caching of images done by the tomcat server. Does anybody know how to configure tomcat server to disable image caching? Its really urgent :( Thanks in advance, Mukta. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _____________________________________________________________________ This e-mail has been scanned for viruses by MCI's Internet Managed Scanning Services - powered by MessageLabs. For further information visit http://www.mci.com ********************************************************************************* Important Note This email (including any attachments) contains information which is confidential and may be subject to legal privilege. If you are not the intended recipient you must not use, distribute or copy this email. If you have received this email in error please notify the sender immediately and delete this email. Any views expressed in this email are not necessarily the views of AXA. Thank you. **********************************************************************************