recommend you get a copy of Cocoon: Building XML Applications. That's basically
what you can use to look up all of these types of details in short order with good
explanations.
/S
[EMAIL PROTECTED] wrote:
Can anyone provide a working sample of accessing any request attributes in the
sitemap?
Thanks
Can anyone provide a working sample of accessing any request attributes in the
sitemap?
Thanks,
Phil
-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon
Meanwhile I've found a workaround for this:
For setting parameters you can set request attributes within the action and
use the RequestAttributeSelector for selecting the pipeline. I think it
could be helpful to write a special action which can set an arbitrary
request attribute for this purpose
From: Volker Schneider [mailto:[EMAIL PROTECTED]]
Meanwhile I've found a workaround for this:
For setting parameters you can set request attributes within the
action and
use the RequestAttributeSelector for selecting the pipeline. I think
it
could be helpful to write a special action
Aldridge
Lead Application developer
Managed Intranet Hosting
CSC
JPMorganChase
Personal GDP: 325-8338
MIH Hotline: 876-1300
David Rosenstrauch [EMAIL PROTECTED] on 05/12/2001 17:14:16
Please respond to [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
cc:
Subject: Request attributes?
A bit confused
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
.
But what are request attributes? I don't know how it works elsewhere, but at least
with Cocoon these seem to always be empty.
1) What are they for?
2) Am I allowed to use these for my own personal use; i.e., as sort of a temporary
storage area? (e.g., request.setAttribute(String name, Object o
PROTECTED]
Subject: Request attributes?
A bit confused.
Looking at org.apache.cocoon.environment.Request (basically it's just a
ServletRequest object). I see that a Request has both parameters and
attributes.
I know what request parameters are. These are the form values in your HTML
form that get
-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
14 matches
Mail list logo