• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

out.flush() question

 
Ranch Hand
Posts: 285
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Forget Steve. Look at this tiny ad:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic