When I use a own @InterceptorRef Annotation for my List then the List is empty. I'm confused because the Default Interceptor works and then the list has for example the two selected Pictures. As a precaution, I only tried it with the first Interceptor, which didn't work either. I don't know what I did wrong. Please help me.
My Action Method with the Annotation Looks like
@Action(value = "fileUploading", results = { @Result(name = "success", location = "nextGui.jsp"),
@Result(name = "input", location = "testGui.jsp") }, interceptorRefs = {
@InterceptorRef(params = { "allowedTypes", "image/jpeg,application/zip", "maximumSize",
"100000000" }, value = "fileUpload"),
@InterceptorRef("defaultStack"), @InterceptorRef("validation") })
public String upload() throws Exception {
for (File file : fileUpload) {
System.out.println("File :" + file);
}
for (String fileName : fileUploadFileName) {
System.out.println("Filename : " + fileName);
}
for (String fileContentType : fileUploadContentType) {
System.out.println("File type : " + fileContentType);
}
System.out.println("Ende");
return SUCCESS;
}