cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vadim Gritsenko" <vadim.gritse...@verizon.net>
Subject RE: Sitemap File System Path from within an Action
Date Wed, 30 Jan 2002 15:35:39 GMT
> 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>


Mime
View raw message