Hi Olivier, in a servlet the ServletContexts getRealPath() method does what you want. In Cocoon there is the class org.apache.cocoon.environment.Context which should do the same.
Hope this helps -Jan Harms > -----Ursprüngliche Nachricht----- > Von: Olivier Billard [mailto:[EMAIL PROTECTED]] > Gesendet: Dienstag, 11. Februar 2003 16:24 > An: [EMAIL PROTECTED] > Betreff: How to get an absolute path ? > > > Hi all ! > > I am using Cocoon 2.0.4 with Tomcat 4.1.18. > In an XSP page, I would like to get the "hard" path of the webapp or a > sub-dir of the webapp, to use Lucene with an index directory. > I know I can > get the relative path of the webapp with > <xsp-request:get-uri/>, but I want > to get the absolute path such like : > "/apps/tomcat/webapps/cocoon/mycocoon/index". Is it possible ? > > I apologize in advance if this doesn't concern this mailing list ! ... > > Olivier BILLARD --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>