cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vadim Gritsenko <vadim.gritse...@verizon.net>
Subject Re: Request parameter matcher, POST and enctype="multipart/form-data"
Date Thu, 03 Jul 2003 14:17:01 GMT
Christian Egli wrote:

>Vadim Gritsenko <vadim.gritsenko@verizon.net> 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




Mime
View raw message