cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lars Huttar" <>
Subject RE: XForms/DENG passing parameters to Cocoon?
Date Sat, 09 Oct 2004 21:29:06 GMT
> Lars Huttar wrote:
> >Thank you thank you!
> >
> >Suggestion, for doc editors: a cross-reference from the Request Generator
> >page to StreamGenerator.
> >
> >describes the Request Generator as "Generates an XML
> representation of the
> >incoming request." Which is true except for the body of the request, so
> >maybe it should say "Generates an XML representation of the incoming
> >request's headers and parameters." and have a cross-reference
> such as "For
> >the body of the incoming request, use StreamGenerator."
> >
> >
> You send me a patch, I'll commit it. How's that sound?

Sounds good. What do I edit, the "view source" output from

I looked at the cocoon/docs/xdocs/userdocs/generators/request-generator.xml
file locally (from, but it was very different from the above web

> Glad it helped! The stream generator is much underrated I think - has
> helped me in a number of situations.

Yeah, I had never come across it, but it seems very valuable.

Next question: Is there a way to inject this data into the pipeline other
than as a generator? My desire is to have my XSP page use data from the HTTP
request body (which is a small XML snippet). So the XSP page wants the
serverpages generator. When my data was coming in as request parameters, the
XSP page was able to get the values of those parameters and use them. But if
my data is coming from a stream generator, then it seems that things get
more complicated.

1) I could have a separate pipeline (StreamGen -> XSLT transformer) that
generates the XSP page with my XML data embedded in it, then call that
pipeline via an XSP Action. Downside: more sitemap complexity (recursive
Cocoon calls) and harder to see what it's doing.

2) Can I use some kind of input module? The Request module doesn't seem to
have a way to "get" the content. Unless the content is an attribute...?


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

View raw message