Storing the FormFile reference into the request wont help; request
attributes are discarded at the end of request processing, so by the
time the next page submits the first request has gone away. To keep
something from one request available to the next request, you would have
to put it into the
2008/3/27, Tom Holmes Jr. <[EMAIL PROTECTED]>:
>
> Yes, I thought I mentioned that I could parse it and store it until
> I need it.
> However, I don't like to store data like that in a session ... it could
> be a lot of data.
> But I could pass it into the request
Wait a moment, maybe
Yes, I thought I mentioned that I could parse it and store it until
I need it.
However, I don't like to store data like that in a session ... it could
be a lot of data.
But I could pass it into the request
Antonio Petrelli wrote:
2008/3/27, Tom Holmes Jr. <[EMAIL PROTECTED]>:
Wel
2008/3/27, Tom Holmes Jr. <[EMAIL PROTECTED]>:
>
> Well, my use case, I am parsing a CSV file and the first line contains
> the header information.
> Each column has a header so rather than parse the entire file at
> this time, I just grab the first line.
> That's all I need to do in that acti
Well, my use case, I am parsing a CSV file and the first line contains
the header information.
Each column has a header so rather than parse the entire file at
this time, I just grab the first line.
That's all I need to do in that action, then I need to hold onto that
file, and then go to t
2008/3/27, Tom Holmes Jr. <[EMAIL PROTECTED]>:
>
> Ok . maybe what I'll do in this case is put the FormFile into the
> request manually
Isn't it easier to parse the FormFile in the action?
Antonio
Ok . maybe what I'll do in this case is put the FormFile into the
request manually, so I can pass it from one page to the next.
I'm not so much concerned with the FormFile.getInputStream since I can
use FormFile.getFileData to get the byte array data.
Thanks!
Antonio Petrelli wrote:
2008/
2008/3/27, Tom Holmes Jr. <[EMAIL PROTECTED]>:
>
> 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 this, or do I need to parse the entire file after the first
> page, and then how would I persist this without writ
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
9 matches
Mail list logo