cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Donald Ball <>
Subject Re: How can a Generator read command-line parameters?
Date Thu, 22 Mar 2001 18:32:15 GMT
On Thu, 22 Mar 2001, SÚrgio Carvalho wrote:

> I'm writing an EjbGenerator, enabling C2 to communicate with
> Enterprise JavaBean containers. I'm now facing the problem of passing
> parameters to the EJB method. Here I'd like some help from C2
> architecture-savvy folks.
> I've managed to find a way to reach HTTP parameters, using the same
> method as PhpGenerator does: getting the HttpServlet request like
> this:
>   this.request = (HttpServletRequest)
> objectModel.get(Constants.REQUEST_OBJECT); from here on it's a rosy
> path.

i'd suggest that rather than force the parameters to be read from an http
servlet request, or any specific source, you consider writing this as an
xsp logicsheet, and allow the page author to control the parameterization.

- donald

To unsubscribe, e-mail:
For additional commands, email:

View raw message