Hi,
I typically do something like this:
<map:match pattern="download/*/**">
<map:generate src="cocoon:/{2}"/>
<map:act type="set-header">
<map:parameter name="Content-Type" value="application/x-download"/>
<map:parameter name="Content-Disposition" value="attachment ;
filename={1}"/>
<map:serialize type="xml"/>
</map:act>
</map:match>
Kind regards,
Geert
>
Drs. G.P.H. Josten
Consultant
http://www.daidalos.nl/
Daidalos BV
Source of Innovation
Hoekeindsehof 1-4
2665 JZ Bleiswijk
Tel.: +31 (0) 10 850 1200
Fax: +31 (0) 10 850 1199
http://www.daidalos.nl/
KvK 27164984
De informatie - verzonden in of met dit emailbericht - is afkomstig van
Daidalos BV en is uitsluitend bestemd voor de geadresseerde. Indien u dit
bericht onbedoeld hebt ontvangen, verzoeken wij u het te verwijderen. Aan dit
bericht kunnen geen rechten worden ontleend.
> From: Matthias Müller [mailto:[EMAIL PROTECTED]
> Sent: dinsdag 7 oktober 2008 14:28
> To: users cocoon.apache.org
> Subject: How to force a Save As prompt?
>
> Hi there,
>
> is there a way or workaround how i can force a Save As prompt
> for my cocoon output? The problem is that the browser knows
> the mime types of the generated files (xml, pdfs) and
> displays it instead of prompting.
>
> regards, matthias
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]