File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
File Delete using webwork
Joined: Sep 15, 2004
Sep 24, 2004 02:28:00
I'm using package com.opensymphony to upload file.
Its work to upload file, but i wonder how i can delete file ?
Ex : i have a simple form
Name : Harry
browse file to upload : test.txt
Name : John
browse file to upload : sample.doc
So.. if i delete Harry, i want delete just Harry's file, not john file.
i put the upload file in C:/temp/upload
i've tried to write code like this
dirUpload = "C:/temp:upload";
File file = new File(getServletContext.getRealPath(dirUpload));
For your information, i'm using webwork 2.0, jakarta-tomcat4.1.29
Somebody help me please
Visit my blog<br /> <br /><a href="http://harry-christian.blogspot.com" target="_blank" rel="nofollow">http://harry-christian.blogspot.com</a>
It is sorta covered in the
JavaRanch Style Guide
subject: File Delete using webwork
How to upload using webwork ???
Browse point to specific folder
Disable right click, copy & paste option in <html:file>
browse button label with html:file
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013