Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

tomcat update txt file to download

Status
Not open for further replies.

jgarciac

Programmer
May 14, 2007
1
GB
Hi guays,
I,m doing a website with JSF. I use Tomcat as a webcontainer. From the website, a user can change the content of a .txt file that is in the server. After that, the user can download that file. The problem is that tomcat provides the file with the previous content, it seems as though tomcat does not update the new file until 20 seconds has passed. After that period, I can download the file with the new content.

Can anyone give any idea, please. Thank you
 
How do you update the content of the text?
You can use flush method for writing result to stream output.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top