new CocoonServletRequest(document, req);
// Specify some additional parmaters
out.println("Adding parameters to my request to Cocoon... <br />");
myReq.addParameter("foo", "bar");
myReq.addParameter("apache", "xml");
// Pass in the real response object. If I wanted to
// filter the output further, I could easily construct
// a CocoonServletResponse object and pass that in,
// and pull the output out of it.