cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Berin Loritsch <blorit...@apache.org>
Subject Re: Context:// issue
Date Sun, 27 May 2001 04:59:56 GMT


giacomo wrote:
> 
> On Sat, 26 May 2001, Donald Ball wrote:
> 
> > On Fri, 25 May 2001, giacomo wrote:
> >
> > > > We are loading our logicsheets in with the context:// uri.
> > > >
> > > > The following error occurs:
> > > >
> > > > If I put  <parameter name="href"
> > > > value="context://WEB-INF/my-logicsheet.xsl"/> in I get an error as
it is
> > > > trying to access to file
> > > > d:\xml_technology\tomcat-4.0\webapps\cocoonWEB-INF\my-logicsheet.xsl
> > > >
> > > > If I add another slash to the url at the beginning it is ok (for
> > > > instance context:///WEB-INF/my-logicsheet.xsl)
> > > >
> > > > Is this correct behavior?
> > >
> > > I've had the same experience.
> >
> > i have as well. i would venture to say that no, this is not correct
> > behavior. i think it was introduced with the urlresolver cleanup.
> 
> Not so sure. I had to use that syntax in the builtin-logicsheets since
> months. Is there anybody familiar with the right URL syntax. AFAIR it's
> protocol://host:port/path where the host:port part may be left and thus
> protocol:///path is for localhost.

The general pattern is "protocol://host:port/path"; however, with the
context and resource protocol, the host:port section is implied (just
like with the file and jar protocols).

The context and resource protocols should match the semantics for
file and jar:

context://relative/path/from/context/root
resource://path/to/packaged/resource

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message