commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Cooper" <mart...@apache.org>
Subject Re: FileUpload form field issue
Date Tue, 27 Jun 2006 17:30:20 GMT
On 6/27/06, Edwin Ramirez <edwin.ramirez@mssm.edu> wrote:
>
> Hello,
>
> I've started using the fileUpload component to handle form submissions
> containing files.  I am following a very simple example and everything
> is working as expected.  However, it seems that multi-value form
> elements are not handled properly.
>
> For example, the select tag such as:
> <select name="multi" multiple size=5>
> <option>One
> <option>Two
> <option>Three
> <option>Four
>
> <option>Five
> <option>Six
> <option>Seven
> <option>Eight
> <option>Nine
> <option>Ten
> </select><br/>
>
> will only retrieve the last item selected.


No, it will result in N separate FileItem instances, one for each selected
item.

I am using the getString() method of the FileItem interface.  Is there
> another method which returns an array of values?


There is no array of values, unless you build one. Each value is a separate
item.

--
Martin Cooper


Thanks,
>
> --
> Edwin S. Ramirez
> Senior Developer
> Mount Sinai Medical Center
> Information Technology
> 212-659-5614
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-dev-help@jakarta.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message