cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lionel Crine <cr...@4dconcept.fr>
Subject Re: Clarification on DownloadFilesToLocalDisk?
Date Fri, 16 Apr 2004 11:55:27 GMT
By the way the action is done first, so you can write it in first place in 
the pipeline.



At 13:43 16/04/2004 +0200, you wrote:
>ok, I see.
>
>I have updated my code since I wrote this page. I only use the second 
>approach.
>
>
>Here is the thing :
>
><map:match pattern="save/*">
>//The generator GetDocument is a custom one. It can be replaced by the 
>file generator.
>         <map:generate type="GetDocument" src="{1}.xml" />
>//Here, we modify the httpheader. It's is the same as the first approach.
>//It appears that using this parameter <map:parameter name="mime-type" 
>value="binary/octet-stream" /> is USELESS.
>        <map:act type="HttpHeader">
>           <map:parameter name="Cache-Control" value="Pragma:no-cache" />
>           <map:parameter name="Content-Disposition" value="attachment ; 
> filename={1}.xml" />
>         </map:act>
>//my custom serializer. it occurs that the "mime-type" attribute is USELESS.
>         <map:serialize type="xmlModule" />
>       </map:match>
>
>
>here is the xmlserializer I use. But you can use the default one.
>       <map:serializer logger="sitemap.serializer.xml" 
> mime-type="text/xml" name="xmlModule" 
> src="org.apache.cocoon.serialization.XMLSerializer">
>         <encoding>UTF-8</encoding>
>         <doctype-public/>
>         <doctype-system>module.dtd</doctype-system>
>       </map:serializer>
>
>
>That is to say that the serializer type file does not exist. I meant 
>type="xml".
>
>I'm going to update the page, now.
>
>Hope this clarify the question.
>
>Lionel
>
>
>At 01:27 07/04/2004 +0000, you wrote:
>>Hi
>>First of all Lionel Crine thank you for creating this wiki page:
>>http://wiki.apache.org/cocoon/DownloadFilesToLocalDisk
>>
>>The first approach  using an action and a reader works fine for me.
>>
>>But I have a question about the second approach. Which serializer should 
>>be configured to match type="file" ? It doesn't seem to be specified by 
>>default in the 2.1.2 sitemap.
>>
>>Thanks
>>Steve
>>
>>_________________________________________________________________
>>Limited-time offer: Fast, reliable MSN 9 Dial-up Internet access FREE for 
>>2 months! 
>>http://join.msn.com/?page=dept/dialup&pgmarket=en-us&ST=1/go/onm00200361ave/direct/01/
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>>For additional commands, e-mail: users-help@cocoon.apache.org
>
>Lionel CRINE
>Ingénieur Systèmes documentaires
>Société : 4DConcept
>22 rue Etienne de Jouy 78353 JOUY EN JOSAS
>Tel : 01.34.58.70.70 Fax : 01.39.58.70.70
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>For additional commands, e-mail: users-help@cocoon.apache.org

Lionel CRINE
Ingénieur Systèmes documentaires
Société : 4DConcept
22 rue Etienne de Jouy 78353 JOUY EN JOSAS
Tel : 01.34.58.70.70 Fax : 01.39.58.70.70


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


Mime
View raw message