[Opensource] file inputs not compatible with struts
Michael Rimov
rimovm at centercomp.com
Tue Feb 4 12:58:21 PST 2003
At 11:39 PM 2/2/2003 -0600, you wrote:
>I'm trying to use action forms with expresso and file handling is not done
>correctly. A the filename string is sent to the setter instead of a FileForm
>object. I assume this is not intended?
>
>I believe either:
>- ServletControllerRequest.parseParamsMultiPart should reset the
>HttpServletRequest parameter to a FileForm object
>- OR extra logic should be added around BeanUtils.populate(form,
>req.getParameters()) in Controller.perform, the method that sets the form
>bean
Mike,
When Mike N. first integrated things, Struts had some large bugs in its
upload handling, so he plunked in some code that had been "old faithful" to
him. He never integrated it with Struts, just left it as a "File"
ControllerRequest parameter. If you want to take the plunge and integrate
the two, that'd be great.
Hope this clarifies!
-Mike
More information about the Opensource
mailing list