Topic
IC4NOTICE: developerWorks Community will be offline May 29-30, 2015 while we upgrade to the latest version of IBM Connections. For more information, read our upgrade FAQ.
1 reply Latest Post - ‏2012-10-22T19:12:08Z by SystemAdmin
SystemAdmin
SystemAdmin
2736 Posts
ACCEPTED ANSWER

Pinned topic problem while Opening Excel and pdfs in JSP using WAS6.1 on RAD7.0

‏2009-04-17T16:38:01Z |
Hi,

I am getting a problem while opening Excel and pdfs in JSP using Websphere Application Server 6.1.It is working fine with WAS5.I am using the following code to display in excel.
HSSFWorkbook wb = null;
ServletOutputStream sos = null;
sos = resp.getOutputStream();
wb.write(sos);
sos.flush();
It is trying to open the window but it says couldn't open.Next popup says Microsoft excel can not access the file.

Please help me out.

Thanks
Venkat.
Updated on 2012-10-22T19:12:08Z at 2012-10-22T19:12:08Z by SystemAdmin
  • SystemAdmin
    SystemAdmin
    2736 Posts
    ACCEPTED ANSWER

    Re: problem while Opening Excel and pdfs in JSP using WAS6.1 on RAD7.0

    ‏2012-10-22T19:12:08Z  in response to SystemAdmin
    add sos.close() at the end