struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tomy <>
Subject Re: MultiPartRequestWrapper not initialized
Date Thu, 30 Dec 2004 09:36:06 GMT
Thanks the trick with the empty dynaform solved my problem.

IMHO there is room for improvement here

The 'unwrap' is no problem in my case since the action handles the whole  
and the forwarded-to JSP has no business tinkering with the request.


On Thu, 30 Dec 2004 11:35:57 +0800, Andrew Hill  
<> wrote:

> As I recall, the wrapper is actually initialised together with the  
> population of the form. No form no population. No population no wrapper  
> population.
> 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.
> hth
> Andrew
> 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