Hi, I am inserting a bunch of records into the database and i know it takes a long time to insert. So i want something like wait message(Please wait...) to be viewed by the user rather than viewing just the blank page while its inserting records to the database. I am using a servlet to do this. So just before the database insert statement i output this message saying (Please wait... ) on to the servletOutputStream and then flushing it. out.println("Please wait . . ."); out.flush() Soon after the insert is finished, i wan't that output to be displayed basically saying Num of successful inserts and Num of Error records. My problem is, it's not outputting this "Please wait ..." message at the start of database inserts at all. This message is output along with the database status. So my question is how to make this happen? For some reason flush() is not working here. Any idea??? Appreciate your help, Thanks.