"Terry Brick" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hello,
> When I submit a multipart form to my action I am
> unable to get use getParameter() on the request object
> to get my form field values.  As I understand it
> struts is supposed to automatically create a
> MultipartRequestWrapper which allows you to do this
> for multipart requests...
> I've seen some postings regarding this, but I still
> don't understand what I need to do.  I think there was
> some mention that MultipartRequestWrapper doesn't work
> right if you're not utilizing the ActionForm?

It still works, but it won't do as much for you behind the scenes. ;-)

>From within an Action, using getParameter() should still work for regular
(i.e. non-file) items, because the request object passed to the Action is
the wrapped request. If you're calling that method from somewhere else, it
may or may not work, depending on whether or not you have a wrapped request.
(In many places, you will not have a wrapped request, because the Servlet
2.2 spec does not permit such a thing, and Struts 1.x is Servlet 2.2
compatible.)

--
Martin Cooper


>
> I also tried instantiating my own
> MultipartRequestWrapper by doing "new
> MultipartRequestWrapper(request)".  That doesn't solve
> the problem either.
>
> Any ideas? I'm using the latest nightly build (Struts
> 1.2).
>
> Thanks!
>
>
> __________________________________
> Do you Yahoo!?
> Free Pop-Up Blocker - Get it now
> http://companion.yahoo.com/




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to