Hi Arun!
Try using the following piece of code. I faced the same problem and it solved
the problem.
HttpServletResponse.setHeader("Cache-Control", "no-cache");
HttpServletResponse.setHeader("Cache-Control", "no-store");
HttpServletResponse.setHeader("Pragma", "no-cache");
--Manish--
Arun Prakash wrote:
> Hi All.,
> I have a caching problem with the JVM....I'm using Include
> file(the files which are uploaded often). Even though the files are
> uploaded properly when i include the files its showing the contents of
> the old files. I think the file content is cached in the JVM. How can i
> clear the cache once the files are uploaded ??? I can solve this problem
> be restarting the server....but i cannot do this everytime the files are
> uploaded...so any suggestions ??
>
> regards
>
> G. Arun Prakash
> Senior Software Engineer
> BTlôôksmart(tm)
> Level 7, 241 Commonwealth Street
> Surry Hills
> Sydney NSW 2010
> Australia
> office: +61(0)2 9282 0200
> office: +61(0)2 9282 0213 (direct)
> fax: +61(0)2 9282 0222
> email: mailto:[EMAIL PROTECTED]
>
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
--
+------------------------------------Live-Your-Dream----+
Obstacles are things a person sees when he takes his eyes off his goal.
-E. Joseph Cossman
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html