> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> 
> Hi guys,
> 
>  I've had a simple java code which produced XML
> output. In Cocoon1, I had to implement some Producer
> interface, so my java code became integrated in the
> Cocoon servlet. Does anybody know how to do similar
> thing in Cocoon2 ?

Implement a generator or write an XSP page.


> I've read the code snippet written
> by Jupin, but I have something else in my mind. I don't
> want to send an other HTTP request to Cocoon, I want to
> write string

Not a string...

> XML directly into the pipeline.

... but a SAX events. If you really want to have an advantage of
skipping XML parsing, you should generate SAX events.

If you don't have knowledge of how to do this, take a look at Java code
generated out of XSP page.

Vadim

> I guess
> I would have to implement some kind of a generator.
>   Can somebody help me ? I want to port my cocoon1
> implementation to cocoon2. Thanx.



---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>

Reply via email to