Pid -
Would adding the following mime-mapping to the web.xml file help?
    <mime-mapping>
        <extension>.csv</extension>
        <mime-type>text/csv</mime-type>
    </mime-mapping>
There is no mapping for ".csv" in the Tomcat default web.xml file in the
conf directory.
I seem to remember addressing a similar problem many, many moons ago for
our app by adding those lines.
Jeff

-----Original Message-----
From: Pid [mailto:p...@pidster.com] 
Sent: Monday, January 25, 2010 4:03 AM
To: users@tomcat.apache.org
Subject: Re: CSV File "Save as" dialogue defaults to HTM file

On 25/01/2010 09:17, Ran Harpaz wrote:
>
> Hello, I'm using Jetspeed 1.6, running on Tomcat.
>
> In a portlet I developed, I create a .csv file and print a link to it.
The
> user then needs to right-click on the file and select "save file as".
>
> The dialogue that pops up defaults to file type HTML file, and
replaces the
> .csv extension of the file I link to with .htm.
>
> Is there anyway to resolve this? I really need to give access to the
csv
> file as-is, and not bother my clients more than neccessary.

Are you setting the "Content-type" header to "text/csv", or are you just

generating it with a JSP?

The latter will automatically set text/html as the content type.


p

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



*******************************  NOTICE  *********************************
This message is intended for the use of the individual or entity to which 
it is addressed and may contain information that is privileged, 
confidential, and exempt from disclosure under applicable law.  If the 
reader of this message is not the intended recipient or the employee or 
agent responsible for delivering this message to the intended recipient, 
you are hereby notified that any dissemination, distribution, or copying 
of this communication is strictly prohibited.  If you have received this 
communication in error, please notify us immediately by reply or by 
telephone (call us collect at 512-343-9100) and immediately delete this 
message and all its attachments.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to