cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Hummel <>
Subject [2.2] calling an HttpServlet via GET or POST using the file generator and servlet: protocol
Date Mon, 17 Aug 2009 14:59:34 GMT

I was wondering if it's possible to GET/POST (both is important) to a
regular HttpServlet (not a SitemapServlet) and then in the sitemap
process the XML generated by that servlet.

For instance, I declare the following bean:

  <bean name="servlet" class="test.MyServlet">
    <servlet:context mount-path="/myblock/servlet"

Then in the sitemap:

  <map:match pattern="myservlet">
     <map:generate src="servlet:/servlet"/>
     <map:serialize type="xml"/>

But this doesn't work.

Is this possible?  If yes, can someone provide a complete example or
point me to some relevant docs?

Thanks in advance,


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

View raw message