hi, it should work without setHeader > -----Ursprungliche Nachricht----- > Von: Easwar Thondikulam [mailto:[EMAIL PROTECTED] > Gesendet: Montag, 23. Februar 2004 22:54 > An: [EMAIL PROTECTED] > Betreff: Excel Files using POI/HSSF > > > I have a JSP that needs to display the data in Excel > format. > > I have using the POI/HSSF classes and when the page is > served, the data is in a mode that is not legible. > > I have used the ServletOuputStream and I have done the > foll. > > response.setContentType("application/vnd.ms-excel"); > > response.setHeader("Content-disposition","attachment; > filename=file.xls"); > > ServletOutputStream sos = response.getOutputStream(); > HSSFWorkbook wb = new HSSFWorkbook(); > . > . > . > . > > wb.write(sos); > sos.flush(); > sos.close(); > > What should I do so that I am able to read the data? > > Any help that you can provide is greatly appreciated. > > Thanks and Regards. > Easwar > > __________________________________ > Do you Yahoo!? > Yahoo! Mail SpamGuard - Read only the mail you want. > http://antispam.yahoo.com/tools > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] >
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
