Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Question about BufferedReader on Servlets

 
Sheng Gu
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic