> 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.
--
WBB - [EMAIL PROTECTED]
Java Cert mock exams http://www.lanw.com/java/javacert/
Author of Java Developer's Guide to Servlets and JSP
ISBN 0-7821-2809-2
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]