On Wed, 2006-03-22 at 16:43 +0100, [EMAIL PROTECTED] wrote: > In a component, I need to call a third-party method which takes a > HttpServletRequest as a parameter. > > In this component, I have access to a cocoon Request. > > How can I do to get to an HttpServletRequest? The method I want to > call needs to look at the headers and source IP address.
The original request object is stored in the objectModel, you can access it like this: HttpServletRequest httpRequest = (HttpServletRequest) objectModel.get(HttpEnvironment.HTTP_REQUEST_OBJECT); -- Bruno Dumon http://outerthought.org/ Outerthought - Open Source, Java & XML Competence Support Center [EMAIL PROTECTED] [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
