cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul Lee" <paul....@skinnypigeon.com>
Subject Re: Servlet-Ouput as Cocoon-Input
Date Wed, 02 Oct 2002 13:57:20 GMT
Hi Michael,

The default generator (file) can do URL as well.

What I've done is wrote a servlet called XMLServlet that generates some simple
XML, then add the following to the sitemap.xmap:

	<map:match pattern="reports/*">
		<map:generate src="http://<host_name>/XMLServlet?{1}"/>
		<map:transform src="StandardReportWeb.xsl" type="xslt"/>
		<map:serialize type="html"/>
	</map:match>

This works well for me.

Good luck!

Paul


> Hi,
> 
> I am new with Cocoon and havn't done a lot with servlets yet.
> My prblem is that I want to process the output of one servlet
> with cocoon. How do I connect them? 
> 
> Is the request generator the correct or the stream generator?
> Any suggestions?
> 
> thank you very much for your efforts,
> 
> kindest regards,
> michael
> 
> ---------------------------------------------------------------------
> Please check that your question  has not already been answered in the
> FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>
> 
> To unsubscribe, e-mail:     <cocoon-users-unsubscribe@xml.apache.org>
> For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>




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

To unsubscribe, e-mail:     <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>


Mime
View raw message