cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Reinhard Poetz" <reinhard_po...@gmx.net>
Subject RE: How to Obtain HttpRequest interface in 2.0.2 ?
Date Tue, 02 Jul 2002 07:22:58 GMT
Hi Jason,

> public void setup(SourceResolver resolver, Map objectModel, String src,
> Parameters par)
>   throws SAXException, ProcessingException, IOException
> {
>     Request request = (Request) objectModel.get(Constants.REQUEST_OBJECT);
>
>     // This line here gets a ClassCastException.
>     HttpRequest hreq = (HttpRequest)request;

         --> skip the last line

>
>     Session session = hreq.getSession();

      Session session = request.getSession();

>
>     Context context = (Context)objectModel.get(Constants.CONTEXT_OBJECT);
>
>     handler.setInputs(session, request, context);
> }

Hope that helps

Regards,
Reinhard


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

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


Mime
View raw message