cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From giacomo <giac...@apache.org>
Subject Re: subsitemap context
Date Tue, 22 May 2001 20:45:38 GMT


On Tue, 22 May 2001, Torsten Curdt wrote:

> 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.

Giacomo


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


Mime
View raw message