Re: Mime type not set for welcome files
I forgot to mention that the issue described below is occuring with Tomcat 5.5.3 Any help would be appreciated! Jerome Jerome Louvel wrote: I have a web app with the following configuration: mime-mapping extensionxhtml/extension mime-typeapplication/xhtml+xml/mime-type /mime-mapping welcome-file-list welcome-fileindex.xhtml/welcome-file /welcome-file-list When I request http://myserver/index.xhtml I receive the XHTML web page normally. However, if I request http://myserver/ I receive the file without the correct mime-type set, which opens an Open with/Save as... dialog in the browser. It seems that the welcome-file-list is ignoring the mime-mapping set in the configuration. Is this as designed, a configuration issue or a bug? Thanks, Jerome - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: MIME type
you can do it in %CATALINA_HOME%\conf\web.xml file. It's a file descriptor for every web applications: mime-mapping extensionJNLP/extension mime-typeXXX/Y/mime-type /mime-mapping -Mensaje original- De: Jaster, Bob [mailto:[EMAIL PROTECTED] Enviado el: jueves, 19 de febrero de 2004 17:33 Para: '[EMAIL PROTECTED]' Asunto: MIME type I would like to configure Tomcat to return a specific MIME type for all files that end with a JNLP extension. Could anyone tell me how to do this? Bob Jaster - 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]
Re: Mime type for authorware content
http://filext.com/detaillist.php?extdetail=AAS Sarel Bester wrote: Hi all I have 2 Tomcat servers - v3.3 and v4.1.27 - (on Windows and IIS) which host a webapp that plays Macromedia Authorware content. The content doesn't play through Tomcat. I suspect it is because of MIME type that is not defined. I searched through mailing list AND archives and can't find anything on authorware. I did find the MIME type definition for Excel:) . . . mime-mapping extensionxls/extension mime-typeapplication/vnd.ms-excel/mime-type /mime-mapping Can anybody help me with the appropriate entry for Authorware content? The relevant extensions are .aam and .aas. Thanks Sarel - 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]
Re: Mime-Type
jsp typically when compiled and executed responds with html. So I believe you are looking for text/html.. Anthony Smith wrote: I did not know where ask to else this question. Is there a mime-type for a jsp? If so, what is it? - 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]
RE: Mime-Type
Howdy, Typically, text/html as that's what the browser sees. However, in a JSP (since it's really a servlet), you can set the response content type to whatever you want, e.g. gzip or application/ms-excel. Yoav Shapira Millennium ChemInformatics -Original Message- From: Anthony Smith [mailto:[EMAIL PROTECTED] Sent: Monday, March 03, 2003 10:36 AM To: Tomcat Users List Subject: Mime-Type I did not know where ask to else this question. Is there a mime-type for a jsp? If so, what is it? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Mime-Type
JSPs are never served to a browser as JSP. They generate output. That output has the appropriate MIME type, such as text/html for typical scenarios. Other MIME types used are image MIME types and MIME types for things like spreadsheets, word processors, and other external applications. If JSP source code is served to a browser with the intention of displaying the JSP code, such as in a tutorial or HOWTO document, the MIME type would typically be standard text. John -Original Message- From: Anthony Smith [mailto:[EMAIL PROTECTED] Sent: Monday, March 03, 2003 10:36 AM To: Tomcat Users List Subject: Mime-Type I did not know where ask to else this question. Is there a mime-type for a jsp? If so, what is it? - 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]
Re: Mime-Type
A compiled jsp is a servlet. The content returned from a servlet can be pretty much anything ;) Most likely the returned content will be text/html Anthony Smith wrote: I did not know where ask to else this question. Is there a mime-type for a jsp? If so, what is it? - 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]
RE: Mime-Type
Remember to set the appropriate mime type for javascript (text/javascript) and css (text/css) files too. -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED] Sent: Monday, March 03, 2003 4:45 PM To: 'Tomcat Users List' Subject: RE: Mime-Type JSPs are never served to a browser as JSP. They generate output. That output has the appropriate MIME type, such as text/html for typical scenarios. Other MIME types used are image MIME types and MIME types for things like spreadsheets, word processors, and other external applications. If JSP source code is served to a browser with the intention of displaying the JSP code, such as in a tutorial or HOWTO document, the MIME type would typically be standard text. John -Original Message- From: Anthony Smith [mailto:[EMAIL PROTECTED] Sent: Monday, March 03, 2003 10:36 AM To: Tomcat Users List Subject: Mime-Type I did not know where ask to else this question. Is there a mime-type for a jsp? If so, what is it? - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Mime-Type
Ladies and Gentleman, .jsp (e.g. index.jsp) is indeed a MIME type. Apache will know this MIME type by the following code if you are using mod_jk as module: JkMount /*.jsp ajp13 --Dave Howdy, Typically, text/html as that's what the browser sees. However, in a JSP (since it's really a servlet), you can set the response content type to whatever you want, e.g. gzip or application/ms-excel. Yoav Shapira Millennium ChemInformatics -Original Message- From: Anthony Smith [mailto:[EMAIL PROTECTED] Sent: Monday, March 03, 2003 10:36 AM To: Tomcat Users List Subject: Mime-Type I did not know where ask to else this question. Is there a mime-type for a jsp? If so, what is it? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - 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]
RE: Mime-Type
Howdy, .jsp (e.g. index.jsp) is indeed a MIME type. Apache will know this MIME type by the following code if you are using mod_jk as module: JkMount /*.jsp ajp13 Do NOT confused MIME type with file extension. The two are different. *.jsp is an extension. JSP is not a mime type as commonly defined. Yoav Shapira Millennium ChemInformatics This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Mime-Type
Uh, mime-type doesn't have anything to do with a file extension. If I have a tiff image it doesn't matter what the extension is, it's still a tiff file. Determining mime-type based based on file extensions is a windows stupidism. Now, I'll admit there are certian conventions, but you can't 100% count on them. --mikej -=- mike jackson [EMAIL PROTECTED] -Original Message- From: Hostmaster of the day [mailto:[EMAIL PROTECTED] Sent: Monday, March 03, 2003 8:25 AM To: [EMAIL PROTECTED] Subject: RE: Mime-Type Ladies and Gentleman, .jsp (e.g. index.jsp) is indeed a MIME type. Apache will know this MIME type by the following code if you are using mod_jk as module: JkMount /*.jsp ajp13 --Dave Howdy, Typically, text/html as that's what the browser sees. However, in a JSP (since it's really a servlet), you can set the response content type to whatever you want, e.g. gzip or application/ms-excel. Yoav Shapira Millennium ChemInformatics -Original Message- From: Anthony Smith [mailto:[EMAIL PROTECTED] Sent: Monday, March 03, 2003 10:36 AM To: Tomcat Users List Subject: Mime-Type I did not know where ask to else this question. Is there a mime-type for a jsp? If so, what is it? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Mime-Type
Mime Type Overview Mime types tell browsers how to handle specific extensions. Most Mime types are set globally on the server. For example, the text/html Mime type equates to htm, html, and shtml extensions on most servers, and this tells your browser to interpret all files with those extensions as HTML files. You can alter or add new Mime types specifically for your site (note that you can not alter the global Mime type values, only add to them). Mime types are often used to handle new technologies as they appear. When WAP technology first appeared no-one had these extensions set up on their server. With Mime types, however, you could have set it up yourself and begun serving WAP pages immediately. Warning: Make sure you check the list of pre-existing Mime types before adding new ones. Check with your hosting administrator before adding a Mime type, as they can easily alter the correct functioning of your web site. Note: People often get confused as to the difference between Mime types and Apache handlers. Basically, Mime types tell your browser how to handle files, while Apache handlers tell the server how to handle files. JkMount /*.jsp ajp13 is an Apache handler not a MIME type. Isn't it. Uh, mime-type doesn't have anything to do with a file extension. If I have a tiff image it doesn't matter what the extension is, it's still a tiff file. Determining mime-type based based on file extensions is a windows stupidism. Now, I'll admit there are certian conventions, but you can't 100% count on them. --mikej -=- mike jackson [EMAIL PROTECTED] -Original Message- From: Hostmaster of the day [mailto:[EMAIL PROTECTED] Sent: Monday, March 03, 2003 8:25 AM To: [EMAIL PROTECTED] Subject: RE: Mime-Type Ladies and Gentleman, .jsp (e.g. index.jsp) is indeed a MIME type. Apache will know this MIME type by the following code if you are using mod_jk as module: JkMount /*.jsp ajp13 --Dave Howdy, Typically, text/html as that's what the browser sees. However, in a JSP (since it's really a servlet), you can set the response content type to whatever you want, e.g. gzip or application/ms-excel. Yoav Shapira Millennium ChemInformatics -Original Message- From: Anthony Smith [mailto:[EMAIL PROTECTED] Sent: Monday, March 03, 2003 10:36 AM To: Tomcat Users List Subject: Mime-Type I did not know where ask to else this question. Is there a mime-type for a jsp? If so, what is it? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - 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] - 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]
RE: Mime-Type
Howdy, JkMount /*.jsp ajp13 is an Apache handler not a MIME type. Isn't it. Yup, exactly. It's an Apache handler for the *.jsp file extension. It instructs apache to pass files ending ending .jsp anywhere under the server root directory (hence the /*.jsp as opposed to /someDir/*.jsp) to the Jk connector using the ajp13 protocol. It doesn't say anything about client-side mime types, as Apache itself has no way of knowing what mime type the JSP page will produce. As Mr. Jackson said, it can be dangerous to rely on specific mime-type conventions, as users and system administrators can change those at will. It's kind of like relying on the fact your user's browser will have an address bar. You can do it, and it'll work under controlled circumstances (which may be good enough for your project), but it's unsafe in general. Yoav Shapira Millennium ChemInformatics This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Mime-Type
petPeeveAlert I'm not going to argue with you, but a file without an extension will still have a mime-type. And a file extension doesn't 100% guarantee that the particular file is what you expect. File extensions are a convenience, nothing more. It's only because some companies (Microsoft) blindly expect the mime-type to be determined by the file extension that we're having this discussion. And this short sitedness is not limited to just Microsoft, but I blame them it popping up in other people's code. Tomcat's own mime-type determination code, ServletContext.getMimetype(), is based on the same short sightedness, at least with version 4.1.12. /petPeeveAlert And yes, JkMount /*.jsp ajp13 is not a mime-type, its a mod_jk setup directive. --mikej -=- mike jackson [EMAIL PROTECTED] -Original Message- From: Hostmaster of the day [mailto:[EMAIL PROTECTED] Sent: Monday, March 03, 2003 9:42 AM To: [EMAIL PROTECTED] Subject: RE: Mime-Type Mime Type Overview Mime types tell browsers how to handle specific extensions. Most Mime types are set globally on the server. For example, the text/html Mime type equates to htm, html, and shtml extensions on most servers, and this tells your browser to interpret all files with those extensions as HTML files. You can alter or add new Mime types specifically for your site (note that you can not alter the global Mime type values, only add to them). Mime types are often used to handle new technologies as they appear. When WAP technology first appeared no-one had these extensions set up on their server. With Mime types, however, you could have set it up yourself and begun serving WAP pages immediately. Warning: Make sure you check the list of pre-existing Mime types before adding new ones. Check with your hosting administrator before adding a Mime type, as they can easily alter the correct functioning of your web site. Note: People often get confused as to the difference between Mime types and Apache handlers. Basically, Mime types tell your browser how to handle files, while Apache handlers tell the server how to handle files. JkMount /*.jsp ajp13 is an Apache handler not a MIME type. Isn't it. Uh, mime-type doesn't have anything to do with a file extension. If I have a tiff image it doesn't matter what the extension is, it's still a tiff file. Determining mime-type based based on file extensions is a windows stupidism. Now, I'll admit there are certian conventions, but you can't 100% count on them. --mikej -=- mike jackson [EMAIL PROTECTED] -Original Message- From: Hostmaster of the day [mailto:[EMAIL PROTECTED] Sent: Monday, March 03, 2003 8:25 AM To: [EMAIL PROTECTED] Subject: RE: Mime-Type Ladies and Gentleman, .jsp (e.g. index.jsp) is indeed a MIME type. Apache will know this MIME type by the following code if you are using mod_jk as module: JkMount /*.jsp ajp13 --Dave Howdy, Typically, text/html as that's what the browser sees. However, in a JSP (since it's really a servlet), you can set the response content type to whatever you want, e.g. gzip or application/ms-excel. Yoav Shapira Millennium ChemInformatics -Original Message- From: Anthony Smith [mailto:[EMAIL PROTECTED] Sent: Monday, March 03, 2003 10:36 AM To: Tomcat Users List Subject: Mime-Type I did not know where ask to else this question. Is there a mime-type for a jsp? If so, what is it? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - 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] - 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
RE: Mime-Type
-Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Monday, March 03, 2003 9:49 AM To: Tomcat Users List Subject: RE: Mime-Type snip As Mr. Jackson said, it can be dangerous to rely on specific mime-type snip You're making me feel old here, stop that. :) --mikej -=- mike jackson [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mime-type setting
Check out the Tomcat 4.x.x conf/web.xml. You can use that format and that ordering and apply it to your own app's web.xml. I don't think that Tomcat 3.3.x uses a conf/web.xml. Also, take a look at the dtd by downloading it. It specifies the tag order. Use the URI in your dtd declaration of your web.xml file and load that in any browser to download it. Jake At 03:32 PM 6/25/2002 +0800, you wrote: Hi all, I want to set mime-type in tomcat 3.3. However, I can't find the web.xml under $TOMCAT_HOME/conf (there is a default web.xml under $TOMCAT_HOME/conf for tomcat 3.2). Also I can't find any document about setting mime-type in tomcat 3.3. Where to set mime-type in order to make tomcat works? Anyway example of web.xml format? Rgds, unplug -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Mime-Type JNLP does not work
This question and much others are being asked and answered ad nauseam, please use the Mail Archive facilities to alleviate some work and bandwidth to all people.. TIA http://jakarta.apache.org/site/mail2.html Which version of tomcat do you use? Please Report information about the Tomcat version and Plataform you use, to be able to say something accurate.. but .. Tomcat 3.2.X and up to 3.3 does not use in any way %TOMCAT_HOME%/conf/web.xml.. As is not a spec compliant way to specify such things.. Tomcat 4.0 does use that file .. Saludos , Ignacio J. Ortega -Mensaje original- De: Christian Amann [mailto:[EMAIL PROTECTED]] Enviado el: martes 18 de septiembre de 2001 15:46 Para: [EMAIL PROTECTED] Asunto: Mime-Type JNLP does not work Hello Friends, I want to add an additional MIME-Type for accessing JavaWebStart-Files (*.jnlp). I was trying the following in TOMCAT_HOME/conf/web.xml: mime-mapping extensionjnlp/extension mime-typeapplication/x-java-jnlp-file/mime-type /mime-mapping Bad thing - it does not work. The browser receives a plain XML-file instead of invoking JavaWebStart. I also tried to place this line in /WEB-INF/web.xml. Same thing. If I add this Mime-type in IIS, everything works properly. Any ideas? Thanks a lot :) Christian Amann