wood burning stoves*
The moose likes Servlets and the fly likes Question about BufferedReader on Servlets Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Question about BufferedReader on Servlets" Watch "Question about BufferedReader on Servlets" New topic
Author

Question about BufferedReader on Servlets

Sheng Gu
Greenhorn

Joined: Sep 27, 2005
Posts: 12
Hi all,

I have a question about servlet bufferReader. I have a method as follows:

This method works on Tomcat 4.0.3. The bufReader can get all transfered String. However, it doesn't work on Tomcat 5.5.9, and it only gets a partial String. When I changed the method as follows, it works on both Tomcat 4.0.3 and Tomcat 5.5.9. Anybody can tell me why? Thank you in advance.
 
Consider Paul's rocket mass heater.
 
subject: Question about BufferedReader on Servlets