Hello!

I'm trying to serve a PDF file (but the problem is the same with other
formats like zip) using a ResourceReader. When I access the URL I've defined
for this reader an "Open/Save As" dialog is displayed by IE. But when I try
to open or save the PDF file I get an error box saying that this internet
site cannot be accessed! With Mozilla everything works fine. There is also
no problem with files that can be displayed directly in IE (like MS Word
oder Excel): this files are correctly opened in browser window.

Cocoon version: Cocoon 2.1.7

sitemap config:
---snip---
<map:readers default="resource">
        <map:reader name="resource"
src="org.apache.cocoon.reading.ResourceReader"/>
</map:readers>

...

<map:match type="wildcard" pattern="test-resource">
        <map:read src="static/test.pdf" mime-type="application/pdf"/>
</map:match>
---snip---

Thanks,

Lucien Weller


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to