You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "VEDRE, RANAPRATAP REDDY" <VE...@engr.sc.edu> on 2003/02/03 23:15:13 UTC
Struts Upload File Question
I am trying to implement a feature that allows users to upload multiple
files at the same time(Similar to Yahoo Mail attachments).
user should be able to select upto a maximun of 5 files on a single page and
all the files are saved to the database on submitting the form.
I am using FormFile in struts upload package for the purpose and storing the
FormFile objects in a vector. what would be the best way to handle this?
Also,how can i show image and text(html markup) on the same page.
if i set the content type for the response to image/gif and return null for
ActionForward, them image shows up but i cannot display text on the page if
i write it to the output stream.
dint find the solution to this in the mailing list archive.
any comments/ideas are welcome.
-Rana.
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: Struts Upload File Question
Posted by Martin Cooper <ma...@apache.org>.
"VEDRE, RANAPRATAP REDDY" <VE...@engr.sc.edu> wrote in message
news:D8AB9C5548AED211928B0090273CDDD704994D03@mailbox.engr.sc.edu...
> I am trying to implement a feature that allows users to upload multiple
> files at the same time(Similar to Yahoo Mail attachments).
>
> user should be able to select upto a maximun of 5 files on a single page
and
> all the files are saved to the database on submitting the form.
>
> I am using FormFile in struts upload package for the purpose and storing
the
> FormFile objects in a vector. what would be the best way to handle this?
Well, I'd use a List instead of a Vector, but otherwise you're on the right
track.
>
> Also,how can i show image and text(html markup) on the same page.
> if i set the content type for the response to image/gif and return null
for
> ActionForward, them image shows up but i cannot display text on the page
if
> i write it to the output stream.
This is not a Struts-related question.
--
Martin Cooper
>
> dint find the solution to this in the mailing list archive.
>
> any comments/ideas are welcome.
>
> -Rana.
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org