Web.xml mime mappings sounds like a Tomcat issue rather than Cocoon one. I
think you can also supply mime headers via Cocoon during your match but if
it works...

Does the FOP (PDF) still work as planned when a image is not used?

Rob

-----Original Message-----
From: Jonas Lundberg [mailto:[EMAIL PROTECTED] 
Sent: 23 January 2006 20:40
To: [email protected]
Subject: FOP pdf / gif image issue with Cocoon 2.1.8

I just noticed that FOP pdf generation with GIF images does not work
with my Cocoon 2.1.8 installation unless the following is added to
web.xml:

  <mime-mapping>
      <extension>gif</extension>
      <mime-type>image/gif</mime-type>
  </mime-mapping>

In the site map I use:

<map:match pattern="flow/readimage/**.gif">
  <map:read type="image" mime-type="image/gif "
src="http://guest:[EMAIL PROTECTED]:serverName}:{request:serverPort}/cocoon/web
dav/db/contents/gif/{1}.gif"
/>
</map:match>

It seems odd that I should have to configure the gif mime type in
web.xml for this to work... Is something wrong with my Cocoon
installation?

Regards
Hans

---------------------------------------------------------------------
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]