• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

saving the excel file is a specific location

 
Ranch Hand
Posts: 145
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Bartender
Posts: 4121
IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.!!!
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ... !!!
 
If you open the box, you will find Heisenberg strangling Shrodenger's cat. And waving this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic