You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by David Hummel <le...@gmail.com> on 2009/08/17 16:59:34 UTC

[2.2] calling an HttpServlet via GET or POST using the file generator and servlet: protocol

Hello,

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"
context-path="blockcontext:/myblock/"/>
  </bean>

Then in the sitemap:

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

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,

-David

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