>         //get a handle to some temporary file and open
>         //a stream to it
>         String tempDir = servlet.getTempDir();
>         if (tempDir == null) {
>             tempDir = System.getProperty("java.io.tmpdir");
>         }
>

Michael,

A servlet container implementing 2.2 or later is required to provide a
servlet context attribute named "javax.servlet.context.tempdir" (an object
of type java.io.File) that is a writeable directory that this webapp can
use for temporary files.  It might be better do use this, rather than the
"java.io.tmpdir" directory which is global to the entire application server
you are running in.

Craig


Reply via email to