WebSphere Application Server - Excel content type issue

This is Interesting: Free IT Magazines  
Home > Archive > WebSphere Application Server > February 2005 > Excel content type issue





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Excel content type issue
mailjosephpv

2004-03-16, 8:35 am

Hi all,
I am using websphere 5.0.1 as our app server.
I am developing a simple report page which has to be displayed in excel.
I have set the content-type of the JSP page to "application/vnd.ms-excel". The code was working good in Tomcat.
When we moved to websphere, i get either of these
-could not open url "http://.....".
-"File Download" dialog box
Internet Explorer cannot download...

my.jsp
<%@ page contentType="application/vnd.ms-excel"%>.


I tried the following :
1. Setting the mime type for xls in web.xml
2. Adding an entry for the mime type of xls in the virtual host-default (thru console)
mapping application/vnd.ms-excel with xls
3.Also tried adding a mime type entry in java/jre/lib/content-types.properties .

Any help ASAP would be appreciated.
Thanks
Joe
Ken Hygh

2004-03-16, 9:34 am

mailjosephpv wrote:

>Hi all,
>I am using websphere 5.0.1 as our app server.
>I am developing a simple report page which has to be displayed in excel.
>I have set the content-type of the JSP page to "application/vnd.ms-excel". The code was working good in Tomcat.
>When we moved to websphere, i get either of these
> -could not open url "http://.....".
> -"File Download" dialog box
> Internet Explorer cannot download...
>
>my.jsp
><%@ page contentType="application/vnd.ms-excel"%>.
>
>
>I tried the following :
>1. Setting the mime type for xls in web.xml
>2. Adding an entry for the mime type of xls in the virtual host-default (thru console)
>mapping application/vnd.ms-excel with xls
>3.Also tried adding a mime type entry in java/jre/lib/content-types.properties .
>
>Any help ASAP would be appreciated.
>Thanks
>Joe
>
>

Are you requesting this URL directly from WebSphere or through an Http
Server? You may need to change/add the mime-type in the Http Server.

Are you sure that the response has your mimetype? or something different?

This could also be a browser-side issue, btw. If you go ahead and do the
download, do you get a real xls file? Or something corrupted?

Ken

gauravsinghal

2005-02-28, 10:38 am

Hi
I have got the exact same problem. Have anyof you figured out the solution of this. If you have can you please post the solution to this problem.

Thanks


quote:
Originally posted by mailjosephpv
Hi all,
I am using websphere 5.0.1 as our app server.
I am developing a simple report page which has to be displayed in excel.
I have set the content-type of the JSP page to "application/vnd.ms-excel". The code was working good in Tomcat.
When we moved to websphere, i get either of these
-could not open url "http://.....".
-"File Download" dialog box
Internet Explorer cannot download...

my.jsp
<%@ page contentType="application/vnd.ms-excel"%>.


I tried the following :
1. Setting the mime type for xls in web.xml
2. Adding an entry for the mime type of xls in the virtual host-default (thru console)
mapping application/vnd.ms-excel with xls
3.Also tried adding a mime type entry in java/jre/lib/content-types.properties .

Any help ASAP would be appreciated.
Thanks
Joe

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com