struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Hill <>
Subject Re: MultiPartRequestWrapper not initialized
Date Thu, 30 Dec 2004 03:35:57 GMT
As I recall, the wrapper is actually initialised together with the 
population of the form. No form no population. No population no wrapper 

Quickest workaround is to use specify a 'dummy' form for the mapping. 
Just whip up an empty form class, or specify an empty dynaform in your 
config. That should get you your parameters in the action.

I believe that the RequestProcessor will 'unwrap' the wrapper after the 
action executes, so it probably wont be available after you do a 
server-side forward to another JSP or a servlet either.


tomy wrote:
> I'm using a <form enctype="multipart/form-data" ..> without ActionForm's.
> In my Action code I get the HttpRequest wrapped inside a 
> MultiPartRequestWrapper. However the getParameter()-methods return null for 
> every form field!
> I've double and triple checked that I didn't misspell my variable names.
> What could be wrong?
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message