cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Hummel <lem...@gmail.com>
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
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


Mime
View raw message