Hi All,

I am using Struts 2. And need to create temp files which needs to be streamed to the client browser. They will be deleted after send is successful.

Which is the best location to create such temp files? Of course, we can create them in session context, but I would like to know your views on this.

Also, Is there any struts2 way of getting temp files? The file handle should be available.

 

Thanks in advance,

~Abhay Dandekar