I got an email from a fellow rancher requesting me to provide sample code related to file upload in Struts. I was able to successfully implement the file upload functionality in production and here is the code require to do so..
JSP Code:
This code sets up the html form for upload requests. Note the form tag with the encoding type set to multipart-form data. Use the html:file tag for the text box that will be used to specify the file that needs to be uploaded. This will automatically provide a "Browse" button.
In your ActionForm class:
The following lines are important
In the action class that will process the uploaded file:
In the CSV Utility file:
You can find ExcelCSVParser at
Ostermiller.org Hope this helps..