cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yury Mikhienko <yu...@mobicomk.donpac.ru>
Subject Re: How to get an absolute path ?
Date Wed, 12 Feb 2003 13:08:03 GMT
On Tue, 11 Feb 2003 11:09:46 -0500
"Timothy Larson" <Tdlarson@ci.canton.oh.us> wrote:

> You can get the current sitemap path in an XSP:
>   http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=104160818008223&w=2
> 
> Tim
> 
> >>> obillard@rennes.jouve.fr 02/11/03 10:24AM >>>
> 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

Try 
ServletContext httpContext.getRealPath("")


-- 
 
Best regards,
Yury Mikhienko.
IT engineer, ZAO "Mobicom-Kavkaz"

---------------------------------------------------------------------
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:     <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>


Mime
View raw message