cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robby Pelssers" <robby.pelss...@ciber.com>
Subject how to access HttpRequest from java in cocoon
Date Wed, 24 Jun 2009 13:37:30 GMT
Hi guys,

 

Small question...

 

Is there a way to access org.apache.cocoon.environment.http.HttpRequest
from java without having to pass the request object from flowscript to
my java class like the snippet below?

 

 

importClass(Packages.com.xxx.xxx.UserFactoryImpl);

 

function main() {

    var factory = new UserFactoryImpl();

    var user = factory.getUser(cocoon.request, userId);

           ...

}

 

Thx in advance,

Robby

 


Mime
View raw message