<rant> Life is hard for people porting from C1 to C2, so many things have changed. Why, oh why? </rant>
Let's asume I'm a crazy person who uses Cocoon servlet with other servlets and all these servelts share utility classes. Some of this utilities use to take HttpServletRequest as a parameter, but when I moved to C2 I had to changed them to take org.apache....Request instead (lots of my XSPs use these utilities and doing (HttpServletRequest)objectModel.get(HttpEnvironment.HTTP_REQUEST_OBJECT) everywhere would be a pain). In order for my other servlets to work I have to convert HttpServletRequest to cocoon HttpRequest, but the constructor for HttpRequest is protected so forget that. I guess the only option is to create HttpEnvironment and pass it all the crap that it needs, get the Reqeust out and throw it all away. Is there a simpler/smarter way to get cocoon HttpRequest from HttpServletRequest? Thanks, Artur... --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faqs.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>