I am writing a class that will be used from within a JSP or Servlet.
If an exception occurs then I want to be able to create a temporary file and output detailed info to there. I want to create a temporary html file for this. The reason for this is there is a lot of "rich" content that cannot be described as text in an exception message.
In the exception message I would tell the user to look at this file.
I would like to know:
1) Can temporary files be reliably created somehow? Or will there be permissions problems sometimes?
2) will these files be deleted themselves eventually or am I responsible for that?