Ugo Cei wrote:

Christopher Oliver wrote:

FOM_Cocoon has Java methods to get the Request, Response, Session, and
Context, and ComponentManager.


Like this one, I suppose:

   /**
     * Get the current request
     * @return The request
     */
    public Request getRequest() {
        return jsGet_request().request;
    }

But is it callable from Javascript? If I try to call "cocoon.getRequest()" I get this exception:

org.apache.avalon.framework.CascadingRuntimeException: getRequest is not a function".

Ugo


No, it is not - and intentionally so. You can access org.apache.cocoon.environment.Request from Java code, but from JavaScript you can only access FOM objects.

Regards,

Chris




Reply via email to