cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matthias Müller <pym...@yahoo.de>
Subject AW: How to force a Save As prompt?
Date Wed, 08 Oct 2008 07:25:32 GMT
Hey, one more question:
in your example you serialize your stream as xml. i want to be flexible with this, e.g. for
xml or pdf files. 

matthias



----- Ursprüngliche Mail ----
Von: Geert Josten <Geert.Josten@daidalos.nl>
An: "users@cocoon.apache.org" <users@cocoon.apache.org>
Gesendet: Dienstag, den 7. Oktober 2008, 14:32:39 Uhr
Betreff: RE: How to force a Save As prompt?

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:pymote@yahoo.de]
> 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: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>


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


      

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


Mime
View raw message