cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexandre Victoor <>
Subject RE: Cocoon1 -> Cocoon2
Date Wed, 13 Feb 2002 14:39:05 GMT

>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: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"/>

Good luck Geza


Please check that your question has not already been answered in the
FAQ before posting. <>

To unsubscribe, e-mail: <>
For additional commands, e-mail: <>

View raw message