Vadim, thanks for your help. What I meant was:
org.apache.cocoon.environment.Source inputSource=resolver.resolve(src); I didn't realize that I can do that within an action. I thought that's just for generators. But it does just what I wanted. All the best Michael Vadim Gritsenko wrote: >No other way. Or use working directory instead. > >Vadim > >-----Original Message----- >From: Michael Wechner [mailto:[EMAIL PROTECTED]] >Sent: Wednesday, January 30, 2002 11:15 AM >To: [EMAIL PROTECTED] >Subject: Re: Sitemap File System Path from within an Action > >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:[EMAIL PROTECTED]] > >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: <[EMAIL PROTECTED]> >For additional commands, e-mail: <[EMAIL PROTECTED]> > > > > >--------------------------------------------------------------------- >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: <[EMAIL PROTECTED]> >For additional commands, e-mail: <[EMAIL PROTECTED]> > > --------------------------------------------------------------------- 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: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>