Return-Path: Delivered-To: apmail-xml-cocoon-users-archive@xml.apache.org Received: (qmail 41839 invoked by uid 500); 30 Jan 2002 15:36:45 -0000 Mailing-List: contact cocoon-users-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-users@xml.apache.org Delivered-To: mailing list cocoon-users@xml.apache.org Received: (qmail 41821 invoked from network); 30 Jan 2002 15:36:45 -0000 From: "Vadim Gritsenko" To: Subject: RE: Sitemap File System Path from within an Action Date: Wed, 30 Jan 2002 10:35:39 -0500 Message-ID: <00da01c1a9a3$c51e5f70$0a00a8c0@vgritsenkopc> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2616 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal In-Reply-To: <3C580AA1.5000004@wyona.org> X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N > From: Michael Wechner [mailto:cocoonu@wyona.org] > > How do I find the filesystem path of the sitemap from within an Action? > > I mean something like that: > > public Map act(Redirector ....){ > String sitemapFileSystemPath=???.getSitemapPath() It is really not recommended to use file paths. You won't be able run your app from the packed war file. If you still think you can't live without path, use org.apache.cocoon.environment.Context.getRealPath() Vadim --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. To unsubscribe, e-mail: For additional commands, e-mail: