Forgot that,

worked out the problem,

all sorted

Steve

-----Original Message-----
From: Steve Vanspall [mailto:[EMAIL PROTECTED]
Sent: Friday, 14 May 2004 11:54 AM
To: Tomcat Users List
Subject: TempDir???


Hi there,

I have been reading about ways to get Tomcat to write to a file.

Basically I need to write a file, that only needs to be available while
tomcat is running. It is used by a background process to dynamically
configure itself, depending on what configuration tomcat is running on at
that time. When tomcat shuts down it will delete this file, thus indicating
to the background process to shut down also.

My problem is, that in Linux I cannot just write to the /tmp directory.

Is the javax.servlet.context.tempdir attribute set to a defualt of some kind
or do I have to set it myself.

If it is set to a default, how do I access it
getServletContext().getAttributr("javax.servlet.context.tempdir") returns
null.

If I ahve to set it, what permission to I have to give the directory it is
to be?

Thanks in advance

Steve


---------------------------------------------------------------------
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]

Reply via email to