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 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.
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 submitted to the servlet.
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)
)
TIA!
DR
---------------------------------------------------------------------
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: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>
---------------------------------------------------------------------
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: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>