tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Thomas <ma...@apache.org>
Subject Re: unified doXXX()
Date Mon, 01 Mar 2010 11:26:25 GMT
On 01/03/2010 08:01, Aryeh M. Friedman wrote:
> Pid wrote:

>>>
>>> I want to preserve the single handler design but since getParameter
>>> barfs on our new input format and there is no unified raw input reader
>>> the only thing I can think of is make it so doGet and doPost use
>>> request.getQueryString() and request.getReader() respectivally... is
>>> there an easier way? (namely I want to keep doXXX as pure wrappers with
>>> nothing but a dispatch to handleRequest()).
>>
>> Why does request.getParameter() not work, or is that a secret?

Take a look at SRV.3.1 in the servlet spec. Are you sure you are using 
application/x-www-form-urlencoded with your POST?

If you use that content type, Tomcat will merge parameters in the POST 
body and the query string.

Mark



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message