Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

out.flush() question

 
Faisal Khan
Ranch Hand
Posts: 285
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Lads and Gals,
I have written a quick and dirty (perhaps very dirty) JSP page for a buyer's guide. The page loads a form for user selection and there is an if statment to cheque if the form has been submitted, if so, very first two lines are:
out.print( "processing, please wait..." );
out.flush();
followed by the logic to access a class which performs all the quotations and display the cars witin the criteria specified.
For some reason the message "processing, please wait..." does not get displayed as soon as I hit "show cars" button, rather it displays after the processing of the page has finished, hence a blank screen for a few (or more) seconds.
Can someone help, the page is only for proof of concept as the management want to see a prototype of the tool.
Thanks in advance.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13064
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You might try it with some markup <p>... </p> and a crlf so the browser will know how to display it.
Bill
 
Faisal Khan
Ranch Hand
Posts: 285
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, but I already had it inside a <h3> tag and now tried with a <p> tag too but to no avail. Strange thing is, I have another page which does similar thing and it works on that but not here.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic