M.Hockings wrote: I use TC5 for my own stuff and WebSphere at work, why
would I wish to install the older TC4? My ISP moved
from TC4 to TC5 a while ago. Your note indicates
4.1.30 and beyond, so 5.0.25 is a valid test for "beyond" is it not?
Yup. You're right about that. Although I meant 4.1.30
and anything else upcoming in the 4.1.x series, at
least we now have a data point that the problem does
not exist in 5.0.25.
You did use POST as the action of your form right ?
Are you maybe running some framework (like Struts) that may be grabbing the stream before your jsp gets control?
Nope. Straight tomcat. No framework of any kind.
It gets curiouser and curiouser. Running tomcat 4.1.30 totally standalone (port 8080) also shows a similar prolem. The reader does not throw a InvalidStateException in this mode, however the stream/reader is empty and the POST'ed data cannot be printed out in the jsp.
Note, this problem does not happen with servlets in
either standalone or apache+mod_jk mode. There is
something in the jsp machinery that is doing something
very funky with the request's inputstream.
Perhaps a jsp optimization gone horribly wrong ?
Someone (a core programmer maybe) should really try to fix this because tomcat 4.1.30/jsp is very broken.
Best regards,
--j
OK, just because I had nothing better to do this afternoon I downloaded the TC 4.1.30 zip and unpacked it on my laptop (Win2K) and fired it up with j2sdk1.4.2_03...
Seems to work just fine to me....
Maybe your woes stem from some subtlety to do with your platform or Java runtime version? Y'know Java, write once, test everywhere :-)
Now, FWIW, I can make it fail with a "org.apache.jasper.JasperException: getReader() has already been called for this request" If I get and exhaust the reader, close it, then try and get the input stream (or reader) a second time...
Mike
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]