cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gunter D'Hondt <>
Subject Re: forward to another servlet (on another machine)
Date Fri, 23 Jul 2004 12:11:17 GMT

Yep that did it! Thnx!
PS: mime-type is "application/pdf"


Andreas Hartmann <> 
Sent by: news <>
23/07/2004 14:02
Please respond to


Re: forward to another servlet (on another machine)

Gunter D'Hondt wrote:

> Hi,
> I've got the following situation: if the user requests 
> http://webserver/getpdf/1 then I need to call a webservice on 
> http://appserver/pdfServlet?id=1. This webservice doesn't send XML back 
> but directly the PDF-document. I can ofcoz easily do this:
>       <map:match pattern="getpdf/*">
>         <map:redirect-to uri="http://appserver/pdfServlet?id={1}"/>
>       </map:match>
> But this does a clientside redirect (which I don't want since the 
> appserver-machine won't be connected to the Internet). How can I solve 
> this in Cocoon (something like the forward method of plain servlets) ?

I think you can just read the PDF from your servlet:

<map:match pattern="getpdf/*">
   <map:read mime-type="..." src="http://appserver/pdfServlet?id={1}"/>

(I don't know the PDF mime type at the moment)

-- Andreas

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

View raw message