cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Sylvain.The...@swisscom.com>
Subject RE: XMLForm: how to retrieve URL parameter?
Date Mon, 31 Mar 2003 11:18:16 GMT
Hi Josema,

Do I need to override the act() method in the Action?

Regards
Sylvain

-----Message d'origine-----
De: Josema Alonso [mailto:josema@simbiosystems.com]
Date: lundi, 31. mars 2003 11:58
À: cocoon-users@xml.apache.org
Objet: RE: XMLForm: how to retrieve URL parameter?


If i remember correctly, the Request is held in the objectModel, so in your
act method you can do:
Request request = (Request) objectModel.get(Constants.REQUEST_OBJECT);

And get the desired paramater from there.

Best.


-----Mensaje original-----
De: Sylvain.Thevoz@swisscom.com [mailto:Sylvain.Thevoz@swisscom.com]
Enviado el: lunes, 31 de marzo de 2003 9:38
Para: cocoon-users@xml.apache.org
Asunto: XMLForm: how to retrieve URL parameter?


Hello,

I'm using an URL like below to access to a XMLForm application:

http://myServer:8080/myApp?id=2500

I need to retrieve this parameter (id) from within the XMLForm Action class.

The purpose is to populate the Bean with an object (id=2500) coming from the
database.

What is the best solution to retrieve the URL?


Thanks
Sylvain (T)

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


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