On Fri, 16 Jan 2004, Shapira, Yoav wrote:
>
> Howdy,
> The only place the servlet specification allows you to write (and
> obviously read) is the directory specified as the servlet context
> attribute named javax.servlet.context.tempdir.
>
> The JDK also has java.io.tmpdir which you may or may not be able to use.
>
> Other than that, if you need to write to an arbitrary directory in a
> spec-compliant way you need to specify the full path to the directory as
> a context or init parameter, and you need to have the application
> deployer create/modify that directory as necessary.
Thanks Yoav. So.. what if it's not arbitrary and I want to put it in my
webapp's dir (e.g. under WEB-INF/repo)? There wouldn't be a special way
to access the directory, is there?
This would be best since I can then deploy the app to any server and not
need to setup JNDI even.
As a side note, my log4j log dir setting for my webapp suffers from this
same problem, where I must set it to /var/log/app in production which
wouldn't work for my windows test box. :(
Regards,
Daniel
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)