cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Guido Casper" <gcas...@s-und-n.de>
Subject Re: Using a servlet as source for a generator
Date Fri, 14 Feb 2003 08:15:57 GMT
> Of course, when i type the same url in my browser, it works
> ("http://localhost:8080/myApp/myServlet"). Cocoon and my servlet are in
the
> same webApp (and same Tomcat's Context).
>
> Does it really work for you ?
>
> sitemap.xmap is standard and i had just added this :
>
>   <map:pipelines>
>     <map:pipeline match="myApp/test">
>       <map:generate uri="/myApp/myServlet"/><!-- return XML -->
>       <map:serialize />
>     </map:pipeline>
>   </map:pipelines>
>

I think it doesn't fit your servlet mapping.
Try
<map:generate uri="myServlet"/>


If this doesn't work either and you are using 2.1 you can also try
<map:generate
uri="http://{request:serverName}:{request:serverPort}{request:contextPath}/m
yServlet"/>


I believe this also works for 2.0.5-dev

HTH
Guido



---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

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


Mime
View raw message