aspose file tools*
The moose likes JSP and the fly likes opening .xls file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "opening .xls file " Watch "opening .xls file " New topic
Author

opening .xls file

sylvia greene
Ranch Hand

Joined: Jun 23, 2004
Posts: 40
I am using tomcat 4.1
I have a JSP page which has a link. When the user clicks on the link an excel sheet which is on the server should open or should ask the user to save it. I have specified the path as something
http://localhost;8080/examples/form/abc.xls

But the problem is the sheet opens in the browser showing garbage characters which are not understandable. The user does have Excel installed but still it doesn't work. If the user has Download Accelerator Plus installed then it is invoked which downloads the file fine.
Please help.
Atul Prabhu
Ranch Hand

Joined: Dec 17, 2002
Posts: 60
I tried the same thing on tomcat 4.1. Here is the code.



Its working fine.If u are getting junk characters try changing InputStream.
Hope this helps.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: opening .xls file
 
Similar Threads
Creating a new Excel file using "File"
Saving jsp output to a Excel File in different tabs
Upload Data in Excel file
Export to excel question
Using jxl apis for prompting user to enter location for excel sheet?