You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Pratik Das <Pr...@skytechsolutions.co.in> on 2004/08/26 13:40:15 UTC

getting javax.servlet.HttpServletRequest out of cocoon request

Is there any way to get hold of an HttpServletRequest object out of 
org.apache.cocoon.environment.Request.
I am using a third party api to fetch browser information and the bean 
method takes HttpServletRequest object as input parameter. Although I have 
access to all HttpServletRequest  properties through 
org.apache.cocoon.environment.Request. in my action, the absence of 
HttpServletRequest is making the bean ineffective.
regards
Pratik

Re: getting javax.servlet.HttpServletRequest out of cocoon request

Posted by Ralph Goers <Ra...@dslextreme.com>.
No.  However, you can get the HttpServletRequest from the ObjectModel.  If 
you don't have it and you are working with an avalon component it can 
implement Contextualizable. The contextualize method gets the context from 
which the object model can be obtained.

Ralph

At 8/26/2004  04:40 AM, you wrote:

>Is there any way to get hold of an HttpServletRequest object out of 
>org.apache.cocoon.environment.Request.
>I am using a third party api to fetch browser information and the bean 
>method takes HttpServletRequest object as input parameter. Although I have 
>access to all HttpServletRequest  properties through 
>org.apache.cocoon.environment.Request. in my action, the absence of 
>HttpServletRequest is making the bean ineffective.
>regards
>Pratik