Miguel Griffa wrote:

Hi all,
I'm new to developing inside cocoon (I'm writing a generator now).
Since I have to migrate an old framework into cocoon, I need to access data like request and response


How can I access these?

I have the idea that I'd need to use the manager to lookup() some component that will give me these data,
but where can I have a list of which components are available in the service manager?


Thanks in advance

Use org.apache.cocoon.environment.ObjectModelHelper to get the request in method setup().

Request req = ObjectModelHelper.getRequest(objectModel);

Regards
Stephan

Reply via email to