users@glassfish.java.net

Re: how to set content type as a CSV file

From: Jan Luehe <Jan.Luehe_at_Sun.COM>
Date: Tue, 02 Dec 2008 08:38:34 -0800

Have you tried adding these mappings to your domain's default-web.xml:

  <mime-mapping>
    <extension>csv</extension>
    <mime-type>text/csv</mime-type>
  </mime-mapping>

  <mime-mapping>
    <extension>csv</extension>
    <mime-type>text/comma-separated-values </mime-type>
  </mime-mapping>


Jan

On 12/ 1/08 09:53 PM, glassfish_at_javadesktop.org wrote:
> text/csv has been officially registered.
>
> See http://www.iana.org/assignments/media-types/text/
> [Message sent by forum member 'kazssym' (kazssym)]
>
> http://forums.java.net/jive/thread.jspa?messageID=319482
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>