*
The moose likes JSP and the fly likes saving the excel file is a specific location Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "saving the excel file is a specific location" Watch "saving the excel file is a specific location" New topic
Author

saving the excel file is a specific location

Rekha Pande
Ranch Hand

Joined: Jan 29, 2004
Posts: 145
hi all...

I checked the threads in this forum regarding creation of excel sheet through jsp but couldn't find how to save the created excel file in a specific location with out giving user the option of saving this file.

Because the file when generated opens a dialog box to open or close the file... i don't want to give user that option. I want to create and save the file in a location and then give them the option to open the file through a hyper link (which is a link to that specific location).

Plz help..

Thanxs in advance.
Nathan Pruett
Bartender

Joined: Oct 18, 2000
Posts: 4121

Web-browsers don't let you provide a specific location for a user to download a file to, and for good reason... what's to stop a hacker from forcing you to download C:\autoexec.bat or putting a file directly into C:\WINNT\System32\? :roll: It's much better to simply provide the file and let the user decide to open it directly or save it where they want to.
[ August 17, 2004: Message edited by: Nathan Pruett ]

-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
Rekha Pande
Ranch Hand

Joined: Jan 29, 2004
Posts: 145
But then when i created PDF files..i could easily store them in the required specifc location .... using file output stream.....This file was also first saved and then opened in another frame.!!!
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61661
    
  67

Are you talking about saving the file on the server or the client? The former I suspect.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Rekha Pande
Ranch Hand

Joined: Jan 29, 2004
Posts: 145
I want to save the file on the server.
Previosly when creating PDF files... i used to save the file on the server... now i want to save the excel file on the server....
Is there any way..plz tell me..!!

I downloaded the hssf org.apache.poi.hssf.dev package... but i don't know how i can use it in my program... can any one plz guide me on this issue..!
But preferbly if the file can be saved on the server then this package is not required..!
Rekha Pande
Ranch Hand

Joined: Jan 29, 2004
Posts: 145
Thanks for the suggestions.. but i have got what i wanted by using POI HSSF ....
Thanxs once again coz the idea of using this HSSF was taken from the threads in this and JDBC forums ... !!!
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: saving the excel file is a specific location