cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tinu <>
Subject Howto know the cocoon project directory
Date Fri, 15 Feb 2002 12:58:10 GMT
marco writes:
 > Please advise how to retrieve the physical directory (e.g.
 > D:\jakarta-tomcat-4.0.1\webapps\cocoon\my_project) of the current project in
 > an xsp file, because I need to create sub-directories at runtime. Thanks.

In an action, you can do the following (don't know wheter it works in a XSP)

    Context context=(Context)objectModel.get(Constants.CONTEXT_OBJECT);
    String editFile=context.getRealPath("/")

Cheers Martin

To unsubscribe, e-mail:
For additional commands, email:

View raw message