dcsimg

How to throw a dynamic xml page from a Servlet to Cocoon ?

Davanum Srinivas

In Cocoon's parlance, you need to write a "Producer" servlet which can generate a valid XML file from the HttpServletRequest parameters. An example FileProducer bundled into Cocoon can load a requested file from disk. Another sample DummyProducer is at:

http://xml.apache.org/cocoon/dynamic.html