cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Piroumian, Konstantin" <KPiroum...@flagship.ru>
Subject Re: Action to modify request parameters
Date Wed, 05 Sep 2001 06:30:49 GMT
> 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)

You have to use request attributes to pass additional data with your
request - you cannot change request parameters.
See:
request.getAttribute()
request.setAttribute()

Konstantin

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


Mime
View raw message