T Williams

Greenhorn
+ Follow
since Sep 24, 2008
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by T Williams

Thanks for the response. I think I worded it wrong. I'm OK with writing the java code.

The actual concept of building the tree from a logic standpoint is probably where I'm going wrong.

I understand the concept of the Decision Tree just not how to go about building one programmatically...so I guess psuedo code is probably what I'm looking for...so this may be the wrong forum.

Any advice oh where to get this?

thanks
11 years ago
Does anybody have a code example of building a basic decision tree?

I'm having issues with the concept from a java standpoint. Seeing
code always helps me understand it better.

Thanks very much.
11 years ago
Thanks but that did not work. I got the same error.

The logic is I read through the directory and create a file object
for any file that meets certain criteria for deletion.

I then call the delete() method of the file object which of course
fails to delete the file.

I can delete files from my servlet that are NOT in the container. I'm
assuming there is either a permission issue or tomcat won't allow it.
11 years ago
In my servlet, I am creating files at runtime. These files are stored in the root directory of my servlet container.

I need to clean these files up at some time. I have created a thread to do this within my servlet.

However, I use the myfile.delete() method. The file is not deleted.
I tested the file object for canWrite()...returns false.

What is the best way (if at all) to delete these files?

thanks very much!

TRW
11 years ago