JSP page <s: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>
My Action Class public class TestUpload extends ActionSupport{ public TestUpload() { } public String execute() throws Exception { Logger.getLogger(this.getClass().getName()).log(Level.INFO,"File Name \n"+getFilesFileName()); Logger.getLogger(this.getClass().getName()).log(Level.INFO,"File Type \n"+getFilesContentType()); --------- -------------- ------------------------- return SUCCESS; } private String jids; private File files; private String filesContentType; private String filesFileName; // gettter and setters All i want is just to print the name -- View this message in context: http://old.nabble.com/Struts2-File-Upload-tp28163069p28163274.html Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org