Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

saving the excel file is a specific location

 
Rekha Pande
Ranch Hand
Posts: 145
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Rekha Pande
Ranch Hand
Posts: 145
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 65105
89
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you talking about saving the file on the server or the client? The former I suspect.
 
Rekha Pande
Ranch Hand
Posts: 145
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 145
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ... !!!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic