You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Ayoub, Ashraf A" <as...@aramco.com> on 2004/05/29 13:01:33 UTC

Can set temp directory for file upload on runtime

Dears,

I'm using struts 1.1, and I want to set the tempDir to a value no non
untill runtime, I can set it when servlet initialize, as the location of
deploying my application is dynamic, so I will get it and pass an
appropriate value to the tempDir

 

I have read that the default value is determined by the container
hosting the application, can anyone give me clearer understanding.

 

 

Thanks, best regards

 

Ashraf Fouad

 


RE: Can set temp directory for file upload on runtime, let be more clear

Posted by ayouaa0a <as...@aramco.com>.
To make myself clear,
I have only permissions to write to files under my J2EE App only, and the
deployment may make directory my_application_name_1, or
my_application_name_2, and so on, so I need to set the tempDir to a dynamic
folder under my aplication.

-----Original Message-----
From: Ayoub, Ashraf A [mailto:ashraf.ayoub@aramco.com] 
Sent: Saturday, May 29, 2004 2:02 PM
To: user@struts.apache.org
Subject: Can set temp directory for file upload on runtime

Dears,

I'm using struts 1.1, and I want to set the tempDir to a value no non
untill runtime, I can set it when servlet initialize, as the location of
deploying my application is dynamic, so I will get it and pass an
appropriate value to the tempDir

 

I have read that the default value is determined by the container
hosting the application, can anyone give me clearer understanding.

 

 

Thanks, best regards

 

Ashraf Fouad

 



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org