* Joerg Heinicke <[EMAIL PROTECTED]> [2004-05-28 15:31]:
> 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).
What I meant by "the issues surrounding" is, why is this method
commented out? Why is a vote necessary? What are the issues that
need to be debated before a vote occurs.
It seems odd that this method is not implemented.
I've uncommented the method. It works fine.
--
Alan / [EMAIL PROTECTED] / http://engrm.com/
available for contract --> http://engrm.com/the-pitch.html
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]