Note that there are some explanatory texts on larger screens.

plurals
  1. POwindows popup close before display dos . xls
    text
    copied!<p>I'm trying to display a document in a popup window on IE8 -- but before showing, the window closes automatically.</p> <p>Here's the code:</p> <p>javascript:</p> <pre><code>function hacerExportarExcel(){ var url = contextPath + "/exportarCarteraCreditoExcel.do" window.setTimeout("window.open('"+url+"', '_blank', 'width=950,height=500,scrollbars=yes')",1000); } </code></pre> <p>action:</p> <pre><code>try { response.setContentType("application/vnd.ms-excel"); response.setHeader("Content-Disposition", "inline; filename=ConsultaCartera.xls"); consulta.setPdf(response.getOutputStream()); administracionCreditoConsulta.exportarCarteraCreditoExcel(consulta); } catch (Exception e) { logger.logError(e); } finally { response.getOutputStream().flush(); response.getOutputStream().close(); } </code></pre> <p>When asking for the new window it pop ups and starts loading, then it closes and gives me the following exception:</p> <blockquote> <p>2012-06-27 11:01:01,951 ERROR [LoggingFilter] log() Exception (147): ClientAbortException: java.net.SocketException: Connection reset by peer: socket write error at org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:327) at org.apache.catalina.connector.OutputBuffer.flush(OutputBuffer.java:293) at org.apache.catalina.connector.CoyoteOutputStream.flush(CoyoteOutputStream.java:85) at com.wincornixdorf.infinix.creditos.action.ExportarCarteraCreditoExcelAction.execute(ExportarCarteraCreditoExcelAction.java:82)</p> </blockquote> <p>When I try doing this in IE 6 it does fine, the window pops up and the excel is shown. It's not working for IE 8 though...</p> <p>anyone can help ?</p> <p>Thanks!</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload