>How can I do that ? Should I implement the Generator interface too
>in my servlet, or do the HTTP request thing what Jupin suggested ?
>Or is there any other way to do that ? I saw plenty of exapmles
>which use JSP, HTML, XSP and other thing as a generator, but nowhere
>a simple Java (servlet) code.
Well the answer is to put the URL of your servlet in the sitemap :
<map:pipeline>
<map:match pattern="servlet.html">
<map:generate src="http://localhost:8080/alexcocoon/AlexServlet"
/> <!-- servlet that gives an XML response -->
<map:transform src="stylesheets/simple-page2html.xsl"/>
<map:serialize type="html"/>
</map:match>
</map:pipeline>
Good luck Geza
Alex
---------------------------------------------------------------------
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]>