Return-Path: Delivered-To: apmail-xml-cocoon-users-archive@xml.apache.org Received: (qmail 78178 invoked by uid 500); 30 Jan 2002 16:08:31 -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 78159 invoked from network); 30 Jan 2002 16:08:30 -0000 Message-ID: <3C581C18.3050400@wyona.org> Date: Wed, 30 Jan 2002 17:15:20 +0100 From: Michael Wechner User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:0.9.4) Gecko/20011019 Netscape6/6.2 X-Accept-Language: en-us MIME-Version: 1.0 To: cocoon-users@xml.apache.org Subject: Re: Sitemap File System Path from within an Action References: <00da01c1a9a3$c51e5f70$0a00a8c0@vgritsenkopc> Content-Type: multipart/alternative; boundary="------------030806020309040905090102" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N --------------030806020309040905090102 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Thanks Vadim. I will try it out. But how else would you write a file into the filesystem relative to the sitemap from where the action has been called from a HTML form for instance (or HTTP upload)? Michael Vadim Gritsenko wrote: >>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: > > --------------030806020309040905090102 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit Thanks Vadim. I will try it out.

But how else would you write a file into the filesystem relative
to the sitemap from where the action has been called from a
HTML form for instance (or HTTP upload)?

Michael



Vadim Gritsenko wrote:
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. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>



--------------030806020309040905090102--