Olivier Billard wrote:
Hi cocooners,

For some design constrainst, I would like from another servlet, to tell Cocoon to output files.
A wrapper has been made around the CocoonServlet to redirect servlet outputstream to a file. That's the existing part.
Then in a servlet I would like to tell Cocoon to output a file here is a snippet :


request.getRequestDispatcher(cocoonPipeline).include(request, response);

The problem is that Cocoon bases request processing over the request.getServletPath() to get the URI, and this don't change from the request that originally called the calling servlet...

So is there a better and working method to call file outputting to the Cocoon servlet from another servlet ?

Thanks,

--
Olivier Billard


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

use of CocoonBean maybe ?
http://cocoon.apache.org/2.1/userdocs/offline/bean.html

--
Leszek Gawron                                      [EMAIL PROTECTED]
Project Manager                                    MobileBox sp. z o.o.
+48 (61) 855 06 67                              http://www.mobilebox.pl
mobile: +48 (501) 720 812                       fax: +48 (61) 853 29 65

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



Reply via email to