• Post Reply Bookmark Topic Watch Topic
  • New Topic

query about flush method?

 
khurram mirza
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi guys,
sometimes jsp page is not displayed in browser even though flush method is used to flush data to browser.what could be the problem.another interesting thing is that if we go to see source code of page through View menue of browser,nothing is displayed.
khurram mirza
 
Frank Lin
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The servlet engine that you use might use a buffer to improve efficiency. The flush() method may only put the data into the buffer.
 
khurram mirza
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i'm using Tomcat webserver.how can i interact the buffer to get rid of this problem.
khurram mirza
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you completely sure that no exception is being thrown during the JSP execution?
Bill
 
Thomas Mcfarrow
Ranch Hand
Posts: 137
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Flush the writer and do a response.flushBuffer().
That might take care of your problem.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!