• Post Reply Bookmark Topic Watch Topic
  • New Topic

Manipulating Temporary Files From JSP

 
Gabriel Fox
Ranch Hand
Posts: 170
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!