I wasn't aware that it was required. If you don't specify doesn't it default to the 'work' directory?
On 6/3/09, Qunhuan Mei <[email protected]> wrote: > > Hi, > > When implementing file upload, it is required to specify an absolute > directory in struts.xml such as following: > > <constant name="struts.multipart.saveDir" value="C:/fileUploadTempDir" > /> > > But this might be difficult to achieve, say when the project war is deployed > in a external shared server and we do not have much idea about the directory > structure of the target server machine. > > I was wondering if there is any recommended way to handle this issue. > > Ideally I would like to specify the directory in java code where I can > detect the current working directory and specify the saveDir accordingly. Is > this possible? > > Many thanks in advance, > > Qunhuan > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > -- Sent from my mobile device --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]

