cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Berin Loritsch" <blorit...@infoplanning.com>
Subject Re: Things that Cocoon needs explicitly passed
Date Thu, 07 Dec 2000 20:39:00 GMT

----- Original Message ----- 
From: "Paul Russell" <paul@luminas.co.uk>
To: <cocoon-dev@xml.apache.org>
Sent: Thursday, December 07, 2000 1:03 PM
Subject: Re: Things that Cocoon needs explicitly passed


> On Thu, Dec 07, 2000 at 11:46:03AM -0500, Berin Loritsch wrote:
> > > URL configuration file (works with servlet, easy to convert files)
> > > String classpath
> > > File WorkDir (needs to be guaranteed writable)
> > > URL Root (Should this be URL, File, or String?)
> > I have a version that specifies everything listed here (Root is String),
> > and works.  Shall I commit it?  It changes the Cocoon constructor,
> > and the Programming section to use a File for the workDir.
> > 
> > public Cocoon(URL configuraitonFile, String classpath, File workDir, String Root)
{}
> 
> Without the typo, right? ;) Is the root specified in web.xml, or
> extracted from the context? I'm still not entirely happy with
> using a string to specify the root, but I guess we can tackle that
> in due course.


Yes.  It is extracted from the context.  I will have to double-check,
but if root is held as a URL, we should pass it as a URL.

CocoonServlet gets the root information by context.getRealPath("/").
It's easy enough to derive a File/URL from that result.


Mime
View raw message