response.setContentType("application/"); give warning in 2007

Hi ,

I am developing some content and that will 1st diapsly in HTML after that it will convert to XLS
so i am using response.setContentType("application/");

its working fine upto 2003 ms excel but 2007 its give waraning msg and open

can you tell me why it happen and how to slove this ??

LVL 20
Sathish David  Kumar NArchitectAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

I'm wondering why you're setting that content type if it's first html?
Sathish David Kumar NArchitectAuthor Commented:
sorry typo error
Its JSp
OK. What warning message are you getting?
Cloud Class® Course: Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

Sathish David Kumar NArchitectAuthor Commented:
The file format is not supported do u want to continoue ?
yes no .
if i press yess then it will open normaly
thats an application issue, changing the content type is not going to make any difference

The most effective workaround is to create a .xls file and point the user to that file.

The warning was added to Excel in 2007:

Long discussion from a Web developer's standpoint here:


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.