tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From William Brogden <>
Subject Re: Problem with cache
Date Thu, 01 Mar 2001 12:52:12 GMT

> matteo belloni wrote:
> I've a servlet that write on a file.
> If the Tomcat is running the first time the application rewrite the
> file, the other time this file is appended but, If I first shutdown
> the webserver, the information in a file isn't appended and the
> application function correctly.
> This appen because this file is keeping in the web server's cache.
> How can I solve this problem and writing every time on a file instead
> of append the information? I must modify web.xml? And how?
> Please help me.
> Thanks in advance

Sounds to me like you are not flushing and/or closing the file.

Java Cert mock exams
Author of Java Developer's Guide to Servlets and JSP 
ISBN 0-7821-2809-2

View raw message