Re: (Struts 2) Problem with uploading of file or validation

2008-08-12 Thread Ylva Degerfeldt
I'm not sure how to check that but I don't think the URI has any spaces and it can't be empty. After all, the file Was saved to the action without problems (at least the setFile method was executed and others after that). And this can't be about that specific file, since I've used that file in tes

Re: (Struts 2) Problem with uploading of file or validation

2008-08-12 Thread Jim Kiley
The javadoc for java.io.File mentions a constructor that accepts a URI as its parameter. It has the following note: uri - An absolute, hierarchical URI with a scheme equal to "file", a non-empty path component, and undefined authority, query, and fragment components So: * Does the URI's path hav

(Struts 2) Problem with uploading of file or validation

2008-08-12 Thread Ylva Degerfeldt
Hi, I'm trying to upload a file (and some text values) from a multipart/form-data form. I'm also trying to use the validation framework (I have created a -validation.xml file) but when the action is receiving the values I get this exception: Caused by: java.lang.IllegalArgumentException: URI is n