cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Torsten Curdt <tcu...@dff.st>
Subject Re: subsitemap context
Date Wed, 23 May 2001 09:46:01 GMT
> > Is there a way of getting the subsitemap context from the request?
> >
> > Example:  /coocon/subsitemap/some/other/path.html
> >           |     |           |
> >           |  1  |     2     |     3
> >
> > (1) = request.getContextPath()
> > (2) = ?
> > (3) = request.getRequestURI() - (2) - (1)
> >
> > Actually what I want to have is (3). But I fear I have to
> > "subtract" it from the getRequestURI().
>
> A request.getSitemapURI() will do it.
> >
> > I didn't find anything in the request wrapper. Wouldn't this be useful to
> > have?
>
> Have another look into it :) it is there.

Ok then let me explain what I am trying in my subsitemap

    <map:match pattern="path.html">
      <map:aggregate element="root">
       <map:part src="navigation/site.xsp" element="navigation" strip-root="yes" />
       <map:part src="home/index.xsp" element="content" strip-root="yes" />
      </map:aggregate>
      <map:transform src="stylesheets/page2html.xsl"/>
      <map:serialize type="html"/>
     </map:match>

now within the aggregated part "navigation/site.xsp" I get for

request.getRequestURI()  = "/coocon/subsitemap/path.html"
request.getContextPath() = "/coocon"
request.getSitemapURI()  = "navigation/site.xsp"

I found getSitemapURI ;) but it does not seems to be what I
am looking for...
--
Torsten


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


Mime
View raw message