Hello All,

I m getting follwing error while uploading file using struts2.

The control is even not reaching the action class. In Netbeans HTTP monitor it is saying DATA Sent with this request was not parameterized.

Code......................

HTML
<div>
<table width=80% align=center>
<tr><td><s:form name="invalidate_form" method="post" action="test_upload" enctype="multipart/form-data">
<s:textfield id="type" name="jids" label="Job Id"/>
<s:file name="files" label="File"/>
<s:submit/></s:form>
</td></tr>
</table></div>


ActionClass


public class TestUpload extends ActionSupport{

public TestUpload() {
}

public String execute() throws Exception {
Logger.getLogger(this.getClass().getName()).log(Le vel.INFO,"File Name \n"+getFilesFileName());
Logger.getLogger(this.getClass().getName()).log(Le vel.INFO,"File Type \n"+getFilesContentType());
..............................
...........................................
return SUCCESS;
}

private String jids;
private File files;
private String filesContentType;
private String filesFileName;

// getters and setters

}


The execution is not coming to action class