I have a servlet that writes it's output as PDF via the response and a BufferedOutputStream. This code need to use a temporary directory to create the PDF via FO transform. I don't want to just have one temp directory for all users each user should get his own directory. I was going to use Thread.toString() for a unique identifier to name the directory.
-----Original Message----- From: James Childers [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 23, 2003 10:59 AM To: Struts Users Mailing List Subject: RE: getting the current thread inside an action > -----Original Message----- > From: Menke, John [mailto:[EMAIL PROTECTED] > Sent: Tuesday, September 23, 2003 9:49 AM > To: Struts (E-mail) > Subject: getting the current thread inside an action > > > Is there a way to get reference to the current thread from > within an Action? Yes: Thread.currentThread(). The question I would ask is: Why? The servlet container should isolate you from having to deal with individual threads. What are you trying to do? -= J --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]