From: Sylvain Wallez <[EMAIL PROTECTED]>
Sonny Sukumar wrote:
Hey thanks for identifying the problem and fixing it. If I don't specify a mime-type for map:read does it always default to "text/html"?
Nope : the ResourceReader (the default one) tries to determine the mime type from the extension of the "src" attribute using ServletContext.getMimeType().
Oh, ok, and that ServletContext.getMimeType() method probably uses the mime-type mappings defined in web.xml, right? If no mapping is defined, say for ".htm" like I used? Then is no mime-type set and the receiving client (in this case a web browser) supposed to guess what type of doc it is?
Thank you for the insight,
Sonny
Sylvain
-- Sylvain Wallez Anyware Technologies http://www.apache.org/~sylvain http://www.anyware-tech.com { XML, Java, Cocoon, OpenSource }*{ Training, Consulting, Projects } Orixo, the opensource XML business alliance - http://www.orixo.com
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
_________________________________________________________________
Enter for your chance to IM with Bon Jovi, Seal, Bow Wow, or Mary J Blige using MSN Messenger http://entertainment.msn.com/imastar
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
