I have found dozens of examples on the Net to use Struts 1 to upload a file using the FormFile object. This works great. However, there is probably a bug in the FormFile since getting the inputStream doesn't seem to work. But using the getFileData to get the byte array does work fine, so then I have to create a ByteArrayInputStream.

Anyway, my question is after I upload my file and look at the data, I want to hold onto that file to the next page. Can I do that. After I successfully upload my CSV file on the first page, and parse it to get the first line which are headers. Then I go to the next JSP page and I display those headers ... and I want to keep that FormFile around from the first page.

Can I do this, or do I need to parse the entire file after the first page, and then how would I persist this without writing it to a database.

Thanks!
                        Tom


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to