hi
i am trying to delete a file from my
servlet in
tomcat 4. the files are as
myapplication/myimages/1.gif.
My servlet location is
myapplication/web-inf/classes/pkg.delServlet
I have tried creating the file object like this in the delServlet
File file= new File("../../myimages/1.gif");
//-- And
File file= new File("../myimages/1.gif");
//--- And also with full path
File file= new File("C:/tomcat/webapps/myapplication/../myimages/1.gif");
In all the ways the file is not being deleted though i can delete it from another standalone class not running in the server with the same lines.
Can anyone help me what i m doing wrong here.
Thanks
Gul