This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Portals and Portlets and the fly likes apache commons FileCleanerCleanup in a portlet environment Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Portals and Portlets
Bookmark "apache commons FileCleanerCleanup in a portlet environment" Watch "apache commons FileCleanerCleanup in a portlet environment" New topic
Author

apache commons FileCleanerCleanup in a portlet environment

share info
Greenhorn

Joined: Jun 06, 2011
Posts: 1
Hi everyone,
I have a little question to which I can't find an answer... I'd appreciate it a lot if you could help me out

The thing is, I'm trying to use the org.apache.commons.fileupload in a portlet 2.0 environment. Everything is working very well, but if I want to make sure my temporary files are cleaned properly, then according to the User Guide of fileupload, I should also use the FileCleaningTracker:


Problem is, there is only org.apache.commons.fileupload.servlet.FileCleanerCleanup and no org.apache.commons.fileupload.portlet.FileCleanerCleanup, which means I can't use the PortletContext - I should find a way to extract a SessionContext...

Have you ever encountered such a problem? Could you please help me with it?

Thanks a lot in advance!
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: apache commons FileCleanerCleanup in a portlet environment
 
Similar Threads
[Resolved] Commons Fileupload problem with textarea
problem with org.apache.commons.fileupload
Converting Formfile to io file
Receiving multipart request
Using Apache FileUpload package with JSP