You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Lionel Crine <cr...@4dconcept.fr> on 2003/04/01 13:19:31 UTC

Re: XMLForm: how to retrieve URL parameter?

You can also see the source of the request generator.

It's almost the same thing....look the setup method.

Lionel


At 23:15 31/03/2003 +0200, you wrote:
>Sure:
>
>public Map act (Redirector redirector, SourceResolver resolver,
>     Map objectModel, String source, Parameters params) throws
>java.lang.Exception {
>Map resultMap = super.act(redirector, resolver, objectModel, source,
>params);
>Request request = (Request) objectModel.get(Constants.REQUEST_OBJECT);
>//I think you can also write the above line this way:
>//Request request = ObjectModelHelper.getRequest(objectModel);
>String the_parameter = request.getParameter("the_parameter");
>...
>
>I do not know if easier ways exist but this worked for me.
>Hope it helps.
>
>
>----- Original Message -----
>From: <Sy...@swisscom.com>
>To: <co...@xml.apache.org>
>Sent: Monday, March 31, 2003 2:07 PM
>Subject: RE: XMLForm: how to retrieve URL parameter?
>
>
> > Hi again,
> >
> > Could you give an example of your code?
> >
> > Thanks
> > Sylvain
> >
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
>For additional commands, e-mail: cocoon-users-help@xml.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org