Hi David,
Temporary storage (and passing of vars down the chain) is precisely what I
use the attribs for. Here's a bit of code for sending an id to another
object via the Request object:
req.setAttribute(jbxsp-id,instanceId);
instance.setReq(req);
Regards,
Anthony
Yup. Some other people wrote the same.
Exactly what I needed (I need to pass something from an action along to a xsp page
further down the pipeline) and it works perfectly.
Thanks!
DR
At 09:43 AM 12/6/01 +, you wrote:
Hi David,
Temporary storage (and passing of vars down the chain)
At 08:52 AM 12/6/01 -0500, you wrote:
Temporary storage (and passing of vars down the chain) is precisely what I
use the attribs for. Here's a bit of code for sending an id to another
object via the Request object:
req.setAttribute(jbxsp-id,instanceId);
instance.setReq(req);
Up to
Hotline: 876-1300
terracare [EMAIL PROTECTED] on 06/12/2001 13:52:28
Please respond to [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
cc:
Subject: Re: Request attributes?
Temporary storage (and passing of vars down the chain) is precisely what
I
use the attribs for. Here's a bit of code
Up to now I have used sessions to store objects needed further down the
processing chain. I may be mistaken, but this approach seems to be a lot
more efficient, assuming I don't need the object outside of the chain... Is
this correct?
I'd say no. For me the primary issue is holding onto
At 02:17 PM 12/6/01 -0500, you wrote:
I agree with you. I wasn't specific enough in my prose as to what I meant by
approach (meaning storage in request attribute NOT session). Thanks for
your clarification and sorry for any confusion.
Diana
Whoops! Misunderstood. I had thought you meant
Yes, I believe, they relate to the underlying javax.servlet.ServletRequest
attributes.
Use them for whatever takes your fancy.
See the Servlet Spec/API for more details
-Original Message-
From: David Rosenstrauch [mailto:[EMAIL PROTECTED]]
Sent: 05 December 2001 17:14
To: [EMAIL
-Original Message-
From: David Rosenstrauch [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 05, 2001 12:14 PM
To: [EMAIL PROTECTED]
Subject: Request attributes?
A bit confused.
Looking at org.apache.cocoon.environment.Request (basically
it's just a ServletRequest
Excellent! Just what I need. Thanks for the info.
DR
At 05:47 PM 12/5/01 +, you wrote:
Yes, I believe, they relate to the underlying javax.servlet.ServletRequest
attributes.
Use them for whatever takes your fancy.
See the Servlet Spec/API for more details
Request attributes are