Return-Path: Delivered-To: apmail-xml-cocoon-dev-archive@xml.apache.org Received: (qmail 24557 invoked by uid 500); 23 May 2001 09:44:57 -0000 Mailing-List: contact cocoon-dev-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-dev@xml.apache.org Delivered-To: mailing list cocoon-dev@xml.apache.org Received: (qmail 24527 invoked from network); 23 May 2001 09:44:54 -0000 Date: Wed, 23 May 2001 11:46:01 +0200 (CEST) From: Torsten Curdt X-X-Sender: To: giacomo cc: Subject: Re: subsitemap context In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N > > 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 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