i am not able to upload the file. i am using the enctype="multipart/form-data" in the form tag, whenever i give that attribute, it is not take the proper action class. suppose i removing that attribute it takes the proper action class. pls help me. i do this requirement last 10 days. but i am not able done this. the files are stored in the server side.. i am using the weblogic server. when ever i am using enctype, it is not going to actionflow map.xml..in once it goes to actionflowmap.xml file it takes the perperaction class in that
There is a little (lot) more to uploading a file than just writing the input stream to disk. These days, most everyone uses a library for this. We have links to the most popular ones in our Servlet FAQ. See: http://faq.javaranch.com/java/FileUpload
File Download like excelsheet is not available in struts 1.1.It was available from struts 1.2.6 which is DownloadAction.so better to use servlet for downloading file.i.e first write Excel sheet to disk and then retrieve from the specified location using ServletOutput Stream.