IntelliJ Java IDE
The moose likes JSP and the fly likes Manipulating Temporary Files From JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSP
Reply Bookmark "Manipulating Temporary Files From JSP" Watch "Manipulating Temporary Files From JSP" New topic
Author

Manipulating Temporary Files From JSP

Gabriel Fox
Ranch Hand

Joined: Oct 17, 2001
Posts: 170
Hi guys. Can someone help me with this :
If i am writing a file , say xyz.xsl to a folder(a temporary file)in my root directory for a web application. If many excel file are generated
per user(in all user sessions) and i need to delete the excel file after the user has downloaded the spreadsheet i sent to the browser.
Questions :
1.How do i create a temporary file.
2.How do i delete a specific excel file from a temporary folder say, after a specific time or when the user logs out of the application.
All ideas wil be appreciated.
Balaji Loganathan
author and deputy
Bartender

Joined: Jul 13, 2001
Posts: 3150
Originally posted by Gabriel Fox:

Questions :
1.How do i create a temporary file.
2.How do i delete a specific excel file from a temporary folder say, after a specific time or when the user logs out of the application.
All ideas wil be appreciated.

Please try to read some java.io tutorials from sun website,something like thisio, then you will cometo know how to do it with JSP.


Spritle Software Blogs
 
IntelliJ Java IDE
 
subject: Manipulating Temporary Files From JSP
 
Threads others viewed
How to store a table's data from oracle database into an excel file?
Using jxl apis for prompting user to enter location for excel sheet?
--How do I control behavior when data is exported to MS Excel??--
Poi Api-Dynamic generation of a cell in a java application from
How to store an oracle database table's data to an excel file?
developer file tools