A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
Win a copy of
Arduino in Action
this week in the
General Computing
forum!
A special promo:
Enter your blog post or vote on a blogger to be featured in an upcoming Journal
JavaRanch
»
Java Forums
»
Java
»
Java in General
Author
Remove file from apache using servlet
Vicky Thakor
Greenhorn
Joined: Sep 04, 2010
Posts: 19
posted
Jun 19, 2011 02:55:31
0
I'm uploading files using
servlet
my little code is like
ServletFileUpload servletFileUpload = new ServletFileUpload(new DiskFileItemFactory()); try { fileItemsList = servletFileUpload.parseRequest(request); } catch (FileUploadException ex) { Logger.getLogger(iThink.class.getName()).log(Level.SEVERE, null, ex); } String optionalFileName = ""; FileItem fileItem = null; Iterator it = fileItemsList.iterator(); . .
the file uploaded on apache directory (\webapps\mysite\uploads\abd.zip)
uploading is working fine but i want to delete it please help me
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35438
9
posted
Jun 19, 2011 05:06:00
0
Doesn't FileItem contain a method that suggests itself?
Android apps
–
ImageJ plugins
–
Java web charts
Vicky Thakor
Greenhorn
Joined: Sep 04, 2010
Posts: 19
posted
Jun 19, 2011 07:20:41
0
Ulf Dittmer wrote:
Doesn't FileItem contain a method that suggests itself?
i tried but its not working..
Rob Spoor
Sheriff
Joined: Oct 27, 2005
Posts: 19232
I like...
posted
Jun 20, 2011 03:45:51
0
Have you closed all readers / writers / input streams / output streams for that file?
SCJP 1.4 - SCJP 6 - SCWCD 5
How To Ask Questions
How To Answer Questions
Vicky Thakor
Greenhorn
Joined: Sep 04, 2010
Posts: 19
posted
Jun 20, 2011 22:01:58
0
i made little mistake in directory but i solved the problem
I agree. Here's the link:
http://zeroturnaround.com/jrebel
- it saves me about five hours per week
subject: Remove file from apache using servlet
Similar Threads
take in file from client machine
Uploading file with special characters in name
Submit multipart and form data
JSP / Servlet upload images
How to Upload a file to oracle database using JSP or Servlets
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter