cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Oliver <res1c...@verizon.net>
Subject Re: Getting an X from a FOM_X
Date Sat, 02 Aug 2003 03:21:12 GMT
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



Mime
View raw message