-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 André,
As fun as beating a dead horse is... On 6/17/2009 6:28 PM, André Warnier wrote: > My point (awaiting a more expert opinion still), is that I believe that > the way the servlet spec is written, you may very well get away with it > under one servlet container, but not under another. The servlet spec is very clear about when the request is consumed to fulfill a getParameter call and when the request is specifically /not/ consumed. > As an aside : in your case, there is also not much stopping you from > sending your XML body in a way guaranteed to work in all cases. > You could send it as > name=........ all your XML, properly URL-encoded .......... If you have huge documents, this is a bad idea, because it requires that the entire XML document be loaded into a single string in memory in order to be manipulated. If you have a multi-megabyte document coming in, reading it into a single String is a sure way to make your application unstable. A better way is to stream the XML document through a SAX parser, doing whatever processing is necessary. This is /not possible/ if you force the container to load the entire string via getParameter. > Then it would work also with getParameters(). Note that Kyle was never trying to use getParameter. He was always trying to read the body himself. He was just doing it wrong :) - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAko77tEACgkQ9CaO5/Lv0PDbEwCgp0KagaG8ravHan0/oFISPQp1 DO4AoL215X+2bSaa+VfIHeE5Wx1HDoeu =WCaV -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org