----------------------------------------------------------------
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!!!
----------------------------------------------------------------
Hi,
See that is the problem. My servlets have to be protable across different servlet
engines, so I cannot hard code path. I don't want to set it as a init parameter
because my servlets will be installed by different users who are not that familiar
with servlets. Having them set init args raises the opportunity to a lot of
configuration problems.
I want to be able to run the servlets with minimum configuration.
-Girish
-----Original Message-----
From: Michael Bryant [EMAIL PROTECTED]
Sent: Fri, 02 Jun 2000 11:06:08 +0800
To: [EMAIL PROTECTED]
Subject: Re: Help-Changing working directory
The solution taken by some of our programmers here was to pass an init parameter to
the servlets specifying where the servlet should write it's data to.
For example, in the zone property file you could add
servlet.au.com.something.initArgs=root=/path/to/where/my/servlets/should/read/write/data
You simply make sure you use this initarg to specify a path whenever opening a file
for read/write.
Girish Wadhwani wrote:
> ----------------------------------------------------------------
> 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!!!
> ----------------------------------------------------------------
>
> Hi,
>
> I guess I was not clear in my email. My servlets are trying to create and write to
>files in Jserv's default working directory. I don't specify a path for the files so
>that it just gets created in the default working directory.
>
> The problem is that JServ uses "/" as the default directory on Solaris. And the sys
>admin is giving me hell about writing to that directory.
>
> I read in the FAQ that there is a way to change this by starting Jserv in manual
>mode. The email, however did not specify how to do it.
>
> Please help!
>
> -Girish
>
> -----Original Message-----
> From: Ed Crotty [EMAIL PROTECTED]
> Sent: Wed, 31 May 2000 22:48:09 -0400
> To: [EMAIL PROTECTED]
> Subject: Re: Help-Changing working directory
>
> ----------------------------------------------------------------
> 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!!!
> ----------------------------------------------------------------
>
> i assume you mean not have the http://yourserver.com/servlets &
> http://yourserver.com/servlets point to $JSERV_HOME/servlets on the
> box.... (sure $JSERV_HOME isnt a "jserv" var, but work with me here)
>
> if you look at the jserv.conf ... ($JSERV_HOME/etc/jserv.conf)
>
> # Example: "ApJServMount /servlets /myServlets"
> # if user requests "http://host/servlets/TestServlet"
> # the servlet "TestServlet" in zone "myServlets" on default host
>
> i think this is the area you want to play with from what i gather from
> your mail...
>
> -ed
>
> ----- Original Message -----
> From: "Girish Wadhwani" <[EMAIL PROTECTED]>
> Date: Wednesday, May 31, 2000 9:35 pm
> Subject: Help-Changing working directory
>
> > ----------------------------------------------------------------
> > BEFORE YOU POST, search the faq at <"
> > target="l">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!!!
> > ----------------------------------------------------------------
> >
> > Hi,
> >
> > Is there any way to change the default working directory in Jserv?
> > Please help!
> >
> > -Thanks,
> >
> > Girish Wadhwani
> >
> ________________________________________________________________________
> ___
> > Visit http://www.visto.com/info, your free web-based
> > communications center.
> > Visto.com. Life on the Dot.
> >
> >
> >
> > --
> > --------------------------------------------------------------
> > Please read the FAQ! <" target="l">http://java.apache.org/faq/>
> > To subscribe: [EMAIL PROTECTED]
> > To unsubscribe: [EMAIL PROTECTED]
> > Archives and Other: <"
> > target="l">http://java.apache.org/main/mail.html>Problems?:
> > [EMAIL PROTECTED]
> >
> >
>
> --
> --------------------------------------------------------------
> Please read the FAQ! <http://java.apache.org/faq/>
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> Archives and Other: <http://java.apache.org/main/mail.html>
> Problems?: [EMAIL PROTECTED]
>
> ___________________________________________________________________________
> Visit http://www.visto.com/info, your free web-based communications center.
> Visto.com. Life on the Dot.
>
> --
> --------------------------------------------------------------
> Please read the FAQ! <http://java.apache.org/faq/>
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> Archives and Other: <http://java.apache.org/main/mail.html>
> Problems?: [EMAIL PROTECTED]
--
Mike Bryant
mailto:[EMAIL PROTECTED]
Network Administrator Dow Digital Global Pty Ltd
Tel: +61 08 9444 4990 355 Scarborough Bch Rd
Fax: +61 08 9443 7249 Osborne Park, WA, 6017
___________________________________________________________________________
Visit http://www.visto.com/info, your free web-based communications center.
Visto.com. Life on the Dot.
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]