I am in the middle of a tutorial on Struts II. Although I have gone all over trying to get this program up and running I am still having the same exact problem and would have to believe that it is common. The error is that the it is not setting the File object in my sub-class of ActionSupport. my server console almost always says
INFO: Unable to find 'struts.multipart.saveDir' property setting. Defaulting to javax.servlet.context.tempdir
I just threw this together very quickly. In previous attempts i followed the fileUpload's naming conventions far more strictly and still had the same result. So even though many of you may mention this it is most likely not the problem.
Joined: Jul 16, 2012
Oh yeah I forgot to mention that the File object is always null and does not exist.
I know little about Struts, but my first check would be that "javax.servlet.context.tempdir" points to a directory that can be read and written by whatever user account the servlet container runs under, and that no security manager interferes with that.