Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

PrintWriter

 
Ravi Singh
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does the HttpServletResponse PrintWriter output to a buffer, or is output sent straight to the browser?
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13074
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Read the javax.servlet.ServletResponse API and you will see the setBufferSize() method call. HttpServletResponse inherits this behavior.
Bill
 
Ripan Karmakar
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I not get u clear ... plz make it clear... with proper example.......
 
Ravi Singh
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What I don't understand is if the PrintWriter of the HttpServletResponse performs buffering what is the need for the JspWriter which also performs buffering?
 
Susanta Chatterjee
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please read the API for both PrintWriter and JspWriter. Compare the methods available for them.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic