----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files. Don't make us guess your problem!!!
----------------------------------------------------------------
Andrew Westbrook wrote:
>
> Bill Volk wrote..
> > No, I mean the directory where a servlet created file would exist. I.E. the
> > data I write out and read in a servlet from the Unix file system.
>
> Earlier he wrote..
> > > > It appears (from the docs) that when I startup Jserv
> > > > automatically ... that
> > > > it's "working" dirtectory is '/' ...
> > > >
> > > > Is there a way of setting up a working directory in the config files?
>
> I looked into this for a while a few months ago, and from the source it
> looks like there is not such parameter. If you have the source to your
> servlets, I would change them so that they do not every write or read
> anything from the current directory. If you do not, I would suggest
> getting whomever wrote the source to change it or change the code to
> mod_jserv so that the directory where the JVM is executed is configurable.
You can pass the desired path to your servlets using
servlet.com.foo.ServletName.initArgs=workdir=/this/is/the/workdir
See the zone.properties file for more details.
-- Travis Low
<mailto:[EMAIL PROTECTED]>
<http://dawnstar.org/travis>
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search Archives:
<http://www.mail-archive.com/java-apache-users%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]