Link to home
Start Free TrialLog in
Avatar of inzaghi
inzaghi

asked on

redirecting once jsp buffer has been flushed

I need to display an animated image to the client whilst some server side processing is carried out. In my code I flush the buffer, perform the server-side code and then want to redirect/forward to another jsp.

How can I do this as If I do a sendRedirect will get an illegalstateexception

Thanks In Advance
Avatar of inzaghi
inzaghi

ASKER

come on experts!
ASKER CERTIFIED SOLUTION
Avatar of Mick Barry
Mick Barry
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of inzaghi

ASKER

To do the redirect I can use window.location. This is working fine.

But when I flush the browser the html is not being flushed to the client at the point it is done, instead it is done at the end of the processing. Any ideas?
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
>> To do the redirect I can use window.location.

That would run at the client-side, not the server-side.