tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: Filter GET and POST
Date Wed, 26 Sep 2007 15:39:40 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Franck,

Franck Borel wrote:
>> I'm not sure why you'd want to do this, since
>> servlets do not really distinguish between GET and POST parameters --
>> the API abstracts that complexity away from your code.
> 
> If I change the request from POST to GET the Servlet works. I have no
> possibility to change the Servlet behind.

When you say "does not work", what do you mean? What happens when you
use POST?

It would be (somewhat) trivial to accept a POST request on one URL and
then forward (or redirect, I suppose) to another URL with the POST
parameters converted into GET parameters. It's up to you to find out if
a filter can do this properly, or even if that's what you want to do.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFG+n089CaO5/Lv0PARAuPoAJoDFtsAN8ci9AT4pbHnZ4N+dukFXQCgoxix
VJGQrcvXxi23xpUcR/JSbJQ=
=B9Qg
-----END PGP SIGNATURE-----

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


Mime
View raw message