[prev in list] [next in list] [prev in thread] [next in thread]
List: jakarta-commons-dev
Subject: Re: FileUpload form field issue
From: "Martin Cooper" <martinc () apache ! org>
Date: 2006-06-27 17:30:20
Message-ID: 16d6c6200606271030o6889a349n6715fa91b60a9d7f () mail ! gmail ! com
[Download RAW message or body]
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
>
>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic