« Return to Thread: how to access HttpRequest from java in cocoon

how to access HttpRequest from java in cocoon

by Robby Pelssers-3 :: Rate this Message:

Reply to Author | View in Thread

Some parts of this message have been removed. Learn more about Nabble's security policy.

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

 

 « Return to Thread: how to access HttpRequest from java in cocoon