Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 65952 invoked from network); 23 Jul 2004 12:11:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 23 Jul 2004 12:11:33 -0000 Received: (qmail 5856 invoked by uid 500); 23 Jul 2004 12:11:24 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 5565 invoked by uid 500); 23 Jul 2004 12:11:23 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: users@cocoon.apache.org Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 5540 invoked by uid 99); 23 Jul 2004 12:11:23 -0000 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=HTML_40_50,HTML_MESSAGE X-Spam-Check-By: apache.org Received: from [194.7.38.248] (HELO mailserv.sofico.be) (194.7.38.248) by apache.org (qpsmtpd/0.27.1) with ESMTP; Fri, 23 Jul 2004 05:11:21 -0700 In-Reply-To: To: users@cocoon.apache.org Subject: Re: forward to another servlet (on another machine) MIME-Version: 1.0 X-Mailer: Lotus Notes Release 6.5.1 January 21, 2004 Message-ID: From: Gunter D'Hondt Date: Fri, 23 Jul 2004 14:11:17 +0200 X-MIMETrack: Serialize by Router on domino2/sofico(Release 6.5.1|January 21, 2004) at 07/23/2004 02:11:23 PM, Serialize complete at 07/23/2004 02:11:23 PM Content-Type: multipart/alternative; boundary="=_alternative 0043156AC1256EDA_=" X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N --=_alternative 0043156AC1256EDA_= Content-Type: text/plain; charset="US-ASCII" Andreas, Yep that did it! Thnx! PS: mime-type is "application/pdf" Regards, Gunter Andreas Hartmann Sent by: news 23/07/2004 14:02 Please respond to users@cocoon.apache.org To users@cocoon.apache.org cc Subject 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: > > > > > > 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: (I don't know the PDF mime type at the moment) -- Andreas --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org --=_alternative 0043156AC1256EDA_= Content-Type: text/html; charset="US-ASCII"
Andreas,

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

Regards,
Gunter




Andreas Hartmann <andreas@apache.org>
Sent by: news <news@sea.gmane.org>

23/07/2004 14:02
Please respond to
users@cocoon.apache.org

To
users@cocoon.apache.org
cc
Subject
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}"/>
</map:match>

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

-- Andreas


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


--=_alternative 0043156AC1256EDA_=--