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
How can I do this as If I do a sendRedirect will get an illegalstateexception
Thanks In Advance
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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?
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
>> To do the redirect I can use window.location.
That would run at the client-side, not the server-side.
That would run at the client-side, not the server-side.
ASKER