Results 1 to 1 of 1
Thread: Problem with folders in tomcat!
- 04-13-2012, 09:38 PM #1
Member
- Join Date
- Apr 2012
- Posts
- 9
- Rep Power
- 0
Problem with folders in tomcat!
Hi guys!!!!
Well, I'm doing a file upload in the form and send to create a folder called upload in the root folder of my project ...
About 3 minutes later, the folder disappears.
What it seems that the folder is being created as temporary and after a while without using it disappears ...
D:\Documents and Settings\Desktop\apache-tomcat-6.0.35\wtpwebapps\scb\upload
Since this happened to anyone?
Do you have any configuration that must be done in tomcat?
Java Code:public String execute(){ //TODO Validar envio de arquivo String filePath = servletRequest.getSession().getServletContext().getRealPath("/"); String imagemCrop = StringUtils.stripAccents(userImageFileName).replace(" ", "_"); final File file = new File(filePath+"\\upload"); if(!file.exists()){ file.mkdir(); } copyFile(userImage, new File(file.getAbsolutePath()+"\\"+ imagemCrop)); new PublicacaoDAO().adiciona(publicacao, imagemCrop); addActionMessage("Publicação cadastrada com sucesso"); return "ok"; }Last edited by franksniper; 04-13-2012 at 09:49 PM.
Similar Threads
-
Access files in folders and sub-folders
By kakinyim in forum CLDC and MIDPReplies: 0Last Post: 05-18-2011, 09:29 PM -
java isDirectory() is not detecting that my folders are folders!
By seandingobat in forum New To JavaReplies: 4Last Post: 10-10-2009, 12:26 AM -
tomcat problem.....
By munish in forum NetBeansReplies: 2Last Post: 09-03-2009, 11:49 AM -
Tomcat Problem
By sanjeevtarar in forum Java ServletReplies: 3Last Post: 04-16-2008, 11:53 AM -
tomcat problem
By osval in forum New To JavaReplies: 2Last Post: 07-29-2007, 08:13 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks