cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simon.mi...@t-online.de (Simon Mieth)
Subject Re: How to get the request parameters in a transformer?
Date Wed, 31 Dec 2003 10:02:07 GMT
On Wed, 31 Dec 2003 10:51:50 +0100
Davide <dagarlas@aliceposta.it> wrote:

> Thanks a lot, I'll consider it, but now I would like to
> build my own transformer. My problem is to get into the
> transformer a parameter of the http request...
> 
Hi,

you can get it in the setup(..) method from your transformer



import org.apache.cocoon.environment.ObjectModelHelper

public void setup(SourceResolver resolver, Map map,..){

 Request request =
(Request)ObjectModelHelper.getRequest(map);
 
 //get the parameters from request;
 
}



Best regards,

Simon

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


Mime
View raw message