cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Willie Wheeler" <>
Subject RE: [C2] Request scope in XSP
Date Thu, 20 Jul 2000 22:02:53 GMT
By the way, I guess that if you want a Java object to process your request
params instead of having the XSP do it directly, you can always make your
myJavaObj.process(Request req, Response res) method return a
locally-defined, and therefore request-scoped, java.util.Map, with the
processing results placed on the Map.  But it would be more convenient if
the attributes were available on the request, and it would facilitate the
transfer of JSP knowledge to XSP.


-----Original Message-----
From: Mike Engelhart []
Sent: Thursday, July 20, 2000 4:50 PM
Subject: Re: [C2] Request scope in XSP

on 7/20/00 3:48 PM, Willie Wheeler at wrote:

> Hi all,
> Earlier today Carsten asked about Cocoon2 sessions, and the answer was
> they will be implemented in time.  I want to follow up by asking about
> requests as well.  As you know, in JSP you can use the HttpServletRequest
> set and get attributes.  Will Cocoon2 also allow this capability, or is
> there a different/preferred way to get the same functionality?  If the
> kind type of capability is planned, I think it would take all of five
> minutes to implement--just add the relevant accessor methods to the
> org.apache.cocoon.Request interface, implement them on the
> CocoonServletRequest class, and then have it delegate to the
> HttpServletRequest that it wraps (just like the other CocoonServletRequest
> methods do)...
> Willie


I always pass objects around using the HttpServletRequest.get/setAttribute


View raw message