You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by aa...@csc.com on 2001/08/31 09:16:57 UTC
HttpServletRequest object accessible from C2
Hi all,
Following earlier questions regarding how to get hold of the
HttpServletRequest object from C2, here's a couple of techniques from the
dev mailling list.
HttpServletRequest httpRequest =
(HttpServletRequest)this.objectModel.get(HttpEnvironment.HTTP_REQUEST_OBJECT
);
My favourite is:
HttpServletRequest httprequest =
(HttpServletRequest)Map.get(HttpEnvironment.HTTP_REQUEST_OBJECT);
Now I can rewrite my code again :-)
Regards,
Anthony Aldridge
Lead Application developer
Managed Intranet Hosting
CSC
JPMorganChase
Personal GDP: 325-8338
MIH Hotline: 876-1300
---------------------------------------------------------------------
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>