Christian Egli wrote:

Vadim Gritsenko <[EMAIL PROTECTED]> writes:



Christian Egli wrote:



The RequestParameterMatcher doesn't seem to match the request
parameters if they come with a multipart/form-data post request.

Is there a way to make the RequestParameterMatcher match these request
parameters?





Try enabling uploads first (see web.xml)



Thanks Vadim, but the RequestParameterMatcher returns no request parameters (<h:requestParameters/>) even with enable-uploads set to true.

If you look at my minimal example I'm not even trying to upload a file
(for now). All I'm trying to do is to have the RequestParameterMatcher
match parameters that are passed in a POST with multipart/form-data
encoding.


Enable-uploads required to enable parsing of multipart/form-data requests. If uploads are not enabled, parser is not used, and parameters won't be available (CocoonServlet, line 989). Once they are enabled, it should work (unless there is a bug...)


Vadim





Reply via email to