cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Imran Pariyani <ipariy...@triplemind.com>
Subject Getting the request object in a class implementing Listener interface cocoon 2.2
Date Tue, 03 Jun 2008 14:49:55 GMT
Hi all,

for the old cocoon i.e 2.1.x we use to access the request object inside 
the ActionListener implementation class with the following code ..

final Request request = 
ObjectModelHelper.getRequest(CocoonComponentManager.getCurrentEnvironment()
                    .getObjectModel());

for cocoon 2.2 can i use the following code to access the request object

ProcessInfoProvider processInfoProvider = (ProcessInfoProvider) 
WebAppContextUtils
                    
.getCurrentWebApplicationContext().getBean(ProcessInfoProvider.ROLE);
            final Map objectModel = processInfoProvider.getObjectModel();
            final Request request = 
ObjectModelHelper.getRequest(objectModel);

or there is some other way to get the instance of the request object ?

Regards

Imran



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message