commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Travis Reeder" <tree...@gmail.com>
Subject Re: UploadServlet: why does parseRequest() not return a Map?
Date Thu, 08 Mar 2007 20:33:45 GMT
I've been wondering the same thing. A second method would be nice that put
it into a map.

Travis



On 3/7/07, Martin Cooper <martinc@apache.org> wrote:
>
> I'm not the original API designer, so I can't give you a definitive
> answer.
> However, returning a Map would result in a loss of information, since you
> would no longer know the order in which the parts were submitted. While
> that
> information might not be important to you, it might be crucial to someone
> else.
>
> --
> Martin Cooper
>
>
> On 3/7/07, Christopher Giblin <CGI@zurich.ibm.com> wrote:
> >
> > Hi,
> > I am looking at UploadServlet for the first time and wondering the
> obvious
> > - why does parseRequest() return a List and not a Map? I already see
> that
> > I will write a utility to convert the List to a Map so that I can
> retrieve
> > form params by name as per servlet programming style?
> >
> > Sorry if this has been asked a million times.
> >
> > Thanks, chris
>

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