Jsp out.flush() not working on IBM Websphere AS400
Hi All,
I have a problem with the following code:
/****************************/
out.print("testing DELAY ....");
out.flush();
for(int i=0; i<100; i++){
try{
Thread.sleep(500);
out.print("["+i+"]");
out.flush();
}catch(Exception e){
out.print("Error :"+e);
}
}
/*******************************************/
This code does not display anything untill the loop completes. (i am using IE 6). I tried to print 185 spaces befor the loop, and this worked fine.
Now the problem is that i have to deploy this code on AS400 machine, and this code is not working over there. can anyone help????
Cheers,
Altaf Malik
|