S
sasuke
Hello to all Java programmers out there.
I am currently faced with a weird scenario in which I have to serve
binary content to the client (using content disposition header) and at
the same time refresh the page so that it's contents are reloaded. I
am using JSF as a UI framework with JSP being the display technology.
The problem I am facing is that as soon as the content is generated,
any efforts to redirect the client or reload the page results in a
"Response already committed" exception. i.e. as soon as the client is
presented with the Open/Save dialog, no page refresh /redirection
takes place the way it normally happens. Is there any way using which
we can spit out the binary file to the client and at the same time
continue with the normal request - response cycle so that a page
refresh takes place?
Any suggestions / links would be highly appreciated.
Thanks and regards,
sasuke.
I am currently faced with a weird scenario in which I have to serve
binary content to the client (using content disposition header) and at
the same time refresh the page so that it's contents are reloaded. I
am using JSF as a UI framework with JSP being the display technology.
The problem I am facing is that as soon as the content is generated,
any efforts to redirect the client or reload the page results in a
"Response already committed" exception. i.e. as soon as the client is
presented with the Open/Save dialog, no page refresh /redirection
takes place the way it normally happens. Is there any way using which
we can spit out the binary file to the client and at the same time
continue with the normal request - response cycle so that a page
refresh takes place?
Any suggestions / links would be highly appreciated.
Thanks and regards,
sasuke.