You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by Brian Ciccolo <br...@us.ibm.com> on 2002/01/31 19:34:08 UTC

MultipartRequestWrapper.getParameter() Bug?

I am using Struts 1.0. According to the Javadoc, the
MultipartRequestWrapper.getParameter() method does the following:

    /**
     * Attempts to get a parameter for this request.  It first looks in the
     * underlying HttpServletRequest object for the parameter, and if that
     * doesn't exist it looks for the parameters retrieved from the
multipart
     * request
     */

And the source code does this by first checking request.getParameter() and
then (optionally) checking parameters.get(). However, the 'parameters' Map
field is never initialized to include the parameters from a multipart
request. This appears to be a bug - or am I missing something?

Thanks.

- Brian



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>