Displaying an excel file from JSP in Portal
843836Aug 11 2003 — edited Dec 14 2006Hi,
I am currently working on a Portal project (we're using IBM websphere portal server) which requires conversion of a set of data from the oracle DB into an excel file and pass this to a jsp file providing an option to the user to either view the excel sheet or dowload and save it (the normal windows popup asking the user if (s)he wants to open the file or save it on the disk). The front end is Netscape 7.0 browser.
I've accomplished the first part of excel file creation, but am unable to send the excel file from server to the client side (ie to the browser).
The code
================
response.setContentType("application/vnd.ms-excel");
response.setHeader("Content-disposition", "filename=mf.xls" );
================
which works perfectly fine when used as a standalone to popup an excel sheet in tomcat server, fails to accomplish anything in the Websphere Portal Server Environment.
Can anyone who've faced and overcome such a problem throw some light on this.
Thanks in anticipation,
regards,
Kashyap.