Solved

Open file

Posted on 2004-04-22
8
181 Views
Last Modified: 2010-04-01
Hi Experts,

I have <%@ page contentType="application/excel"%>
I see popup open , save as ....

When I open it is opened as Word not excel
When I do save as it has in file type " JavaServer pages.

How do I open it as Excel in browser ?
How do I make sure in file types "xls (excel)" appears ?

Thank you.
0
Comment
Question by:fpoyavo
[X]
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
  • 4
  • 2
8 Comments
 
LVL 1

Author Comment

by:fpoyavo
ID: 10892910
I was able to open it. But the problem is that is CSV file and when it is opened in Excel there are cells but
data is not split. I have rows only.

Please help.
0
 
LVL 1

Expert Comment

by:seanrowen
ID: 10893813
Try using a content type of "application/vnd.ms-excel", or better, "text/csv".

If it is not showing up as expected in Excel, then open the .csv file with a text editor and see if there is a problem with the CSV data. Maybe there are no line breaks? or the line breaks are not recognized? That is my guess.
0
 
LVL 1

Author Comment

by:fpoyavo
ID: 10895368
I do have line breaks but Excel does not format cells using commas.
0
Independent Software Vendors: 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 32

Accepted Solution

by:
ldbkutty earned 500 total points
ID: 10917597
>When I open it is opened as Word not excel
>When I do save as it has in file type " JavaServer pages.

>How do I open it as Excel in browser ?

You can use the file name along with the extension in your jsp program, say for example,

"examplefile.xls" or "examplefile.csv" so that it can be saved with the appropriate format, even though the file type is described as '.jsp'.

BTW, i have a similar application for EXCEL downloading and displaying in browser.
0
 
LVL 32

Expert Comment

by:ldbkutty
ID: 10927928
This might be a useful hint to verify your program...
http://www.experts-exchange.com/Web/Web_Languages/JSP/Q_20842012.html

otherwise, post ur full code here...
0
 
LVL 32

Expert Comment

by:ldbkutty
ID: 10953269
Are you successful !?
0
 
LVL 32

Expert Comment

by:ldbkutty
ID: 11132014
well, i do hope that my posted link might be a helpful hint for the author...if not, am sorry.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
how to access elements of included jsp  from parent jsp's save button 9 28
JSP Popup page 2 164
iterator example remove 8 75
dateFashion java challenge 9 149
This article discusses how to implement server side field validation and display customized error messages to the client.
Recently, Microsoft released a best-practice guide for securing Active Directory. It's a whopping 300+ pages long. Those of us tasked with securing our company’s databases and systems would, ideally, have time to devote to learning the ins and outs…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

726 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