how to set mime type
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Lee_KF
Posted On:   Tuesday, January 28, 2003 03:37 AM

Hi, I have a JSP page which list all excel files in a folder(excel file name as html link): http://localhost/myapps/excel/abc.xls. http://localhost/myapps/excel/123.xls. the problem is .... when I click on and excel file, it doesn't launch excel, but displayed a binary...something like a text file with a lot of special character(etc. õÿ ôÀ à ) I want to let the user click on a file name and launch excel in browser(if they have excel in their client PC).... any idea how to do that ?I know I have to set the mime type... but where ? Thanks in advance rgds, LeeKF    More>>

Hi,
I have a JSP page which list all excel files in a folder(excel file name as html link):

http://localhost/myapps/excel/abc.xls.
http://localhost/myapps/excel/123.xls.


the problem is .... when I click on and excel file, it doesn't launch excel, but displayed a binary...something like a text file with a lot of special character(etc. õÿ ôÀ à )


I want to let the user click on a file name and launch excel in browser(if they have excel in their client PC).... any idea how to do that ?I know I have to set the mime type... but where ?


Thanks in advance

rgds,
LeeKF

   <<Less

Re: how to set mime type

Posted By:   vinay_salehithal  
Posted On:   Tuesday, January 28, 2003 10:41 AM

in yr web.xml add this

xls
application/ms-excel
About | Sitemap | Contact