On 28.05.2004 16:57, Alan wrote:

  I'm attempting to use cocoon.context.getRealPath() in my
  flowscript. Like so:

  cocoon.context.getRealPath("/WEB-INF")

  However, I'm getting this exception:

org.apache.avalon.framework.CascadingRuntimeException: getRealPath is not a function.

Does cocoon expose this method?

It seems not: http://cocoon.apache.org/2.1/userdocs/flow/api.html#Context+Object


    Found the code for FOM_Cocoon.java and there's this:

        /* TODO: Vote on the inclusion of this method
        public String jsFunction_getRealPath(String path) {
            return context.getRealPath(path);
        }
        */

    What are the issues surrounding this method? I'd like to use it.
    Can this vote happen soon?

This method is "surrounded" to make it available to flow script. But from that code it should be cocoon.getRealPath(path).


Joerg

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to