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