cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aaldr...@csc.com
Subject Re: Request attributes?
Date Thu, 06 Dec 2001 09:43:03 GMT
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 <darose@dti.net> on 05/12/2001 17:14:16

Please respond to cocoon-users@xml.apache.org

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







---------------------------------------------------------------------
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: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message