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

Posted on 2010-08-14
Last Modified: 2013-11-23
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 ??

Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 86

Expert Comment

ID: 33436737
I'm wondering why you're setting that content type if it's first html?
LVL 20

Author Comment

by:Sathish David Kumar N
ID: 33436799
sorry typo error
Its JSp
LVL 86

Expert Comment

ID: 33437030
OK. What warning message are you getting?
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

LVL 20

Author Comment

by:Sathish David Kumar N
ID: 33437143
The file format is not supported do u want to continoue ?
yes no .
if i press yess then it will open normaly
LVL 23

Assisted Solution

Ajay-Singh earned 50 total points
ID: 33437160
LVL 92

Assisted Solution

objects earned 50 total points
ID: 33438720
thats an application issue, changing the content type is not going to make any difference

LVL 27

Accepted Solution

mrcoffee365 earned 400 total points
ID: 33439560
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:


Featured Post

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
login jsp example 24 105
jsp login check 12 67
eclipse console opening separately 2 50
Java: anonymous class 4 55
By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
Suggested Courses

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question