My newest project is able to generate documents with information from a database.
So I copy the document template on demand to an temporary folder for a user and modify it. I do this because every template must be available during modification.
Afterwards the user is awarded with his document via a download link from my webapp.
My question: Is there a best practise for sorting webapp data...I thought temp would be nice for it. But since I have to delete the data by myself I thought of placing it besides my WAR folder in the tomcat webapp folder.
I use Windows 2003 as a host system with Tomcat. I use Grails, Java and Maven for my project...don't know if this information is needed.
Edit: Main reason why I ask this trivial question is...if I take care of creating/deleting my temporary data...is it still a good practise to use temp folder on the system? I am not sure about this...