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 request
and the forwarded-to JSP has no business tinkering with the request.


Thanks,
tomy


On Thu, 30 Dec 2004 11:35:57 +0800, Andrew Hill <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





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



Reply via email to