This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JSP and the fly likes Regarding Excel sheel in jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Regarding Excel sheel in jsp" Watch "Regarding Excel sheel in jsp" New topic
Author

Regarding Excel sheel in jsp

Harish Chandra Durgapal
Greenhorn

Joined: Mar 01, 2006
Posts: 14
Hi All,
I want to open a excel file on click of an hyperlink in a jsp
page.I have to open the excel file and show open dialog box
with a defaulf directory(say C:\TEST) on click.So that user can select any excel file under that directory.
Please guide how to to that.

Thanks
Harish.
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Where do the Excel sheets reside; on the client's machine or are they up on the server?


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Harish Chandra Durgapal
Greenhorn

Joined: Mar 01, 2006
Posts: 14
Its on any folder at server.
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

You would need to write a component that can read files that reside outside of your file system, present these files in a web-page, then, each file in the list should be represented by a hyperlink that points to a servlet which can stream the file to the client.

There is nothing in the Servlet or JSP APIs for launching true OS dialog boxes on the client machine.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Regarding Excel sheel in jsp
 
Similar Threads
opening xls fine in web Browser using jsp
Opening an Excel file
how can I control "excel" when I use setContentType("application/vnd.ms-excel")
how can I control "excel" when I use "application/vnd.ms-excel"?
How to open excel file ?