Does this mean that sitemap parameters override request parameters of the
same name?

Form:
Set request parameter

--->

Filter action:
Get request parameter
Alter parameter
Save in sitemap parameter

--->

DatabaseAddAction:
use sitemap parameter instead of request parameter with same name

Otherwise, I cannot chain these actions without altering the code in
DatabaseAddAction (which I am trying not to do)

Thanks,

Chris

> -----Original Message-----
> From: Jörn Heid [mailto:[EMAIL PROTECTED]]
> Sent: 04 September 2001 19:14
> To: [EMAIL PROTECTED]
> Subject: AW: C2: Action to modify request parameters
>
>
> I think not. But you can use sitemap params (that's the preferred way for
> actions). And this works with the sitemap, other actions, xslt...
>
> -----Ursprngliche Nachricht-----
> Von: Chris Newland [mailto:[EMAIL PROTECTED]]
> Gesendet: Dienstag, 4. September 2001 19:34
> An: Cocoon-Users
> Betreff: C2: Action to modify request parameters
>
>
> Hi All,
>
> I'm writing an action that is a pre-filter to DatabaseAddAction that
> modifies request parameters before they are sent to the database.
>
> In the map() method of my action I can get the parameters using:
>
> Request req = (Request)objectModel.get(Constants.REQUEST_OBJECT);
> String my_param = (String)request.getParameter("my_param");
>
> // process parameter here
>
> But there is no request.setParameter() to return the updated value to the
> request.
>
> Is this possible? (I hope so)
>
> Thanks,
>
> Chris
>
> --
> Chris Newland
> Software Research Engineer
>
> Emorphia Ltd
> Registered in England.  4133002
> Mill House, Station Approach, Harlow Mill, Harlow, Essex, CM20 2EL, UK
>
> Email: [EMAIL PROTECTED]
> Tel: +44 (0)1279 450100
> Fax: +44 (0)1279 450102
>
> Check out FIPA-OS at http://fipa-os.sourceforge.net/
>
> This message may contain information proprietary to Emorphia so any
> unauthorised disclosure, copying or distribution of its contents
> is strictly
> prohibited.
>
>
>
> ---------------------------------------------------------------------
> 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]>
>
>
>



---------------------------------------------------------------------
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]>

Reply via email to