You can also use the plain old stream result type and pipe the HSSF worksheet as you would any other file type. Saves on the overhead of another unnecessary plugin.
Z. > > > > When/if you use the JasperReports plugin use an older version of poi (3.0 is > the latest I had success with). The new poi throws an exception which many > have complained about but has not been fixed/ > Chris > > > > -----Original Message----- > From: renisha <[email protected]> > To: [email protected] > Sent: Sun, 26 Apr 2009 1:30 pm > Subject: Re: Open an excel in Struts application > > > > > Thanks for your reply . I am using struts2 version. Could you please give me > some sampl code if you have. > > Wes Wannemacher wrote: >> > >> > On Sunday 26 April 2009 11:00:59 am renisha wrote: >>> >> Hi, >>> >> >>> >> I am reading some values from database , doing some calculations and >>> >> creating an excel file. >>> >> >>> >> In my action class , I am returning an HSSFWorkbook object and I need to >>> >> diaply the excel file as the output . Please let me know how do I get it >>> >> working . >> > >> > >> > Which version of Struts? >> > >> > I would suggest if you are using Struts 2, then take a look at the Jasper >> > Reports plugin, there is XLS output from there. >> > >> > -Wes >> > >> > -- >> > >> > Wes Wannemacher >> > Author - Struts 2 In Practice >> > Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more >> > http://www.manning.com/wannemacher >> > >> > >> > --------------------------------------------------------------------- >> > To unsubscribe, e-mail: [email protected] >> > For additional commands, e-mail: [email protected] >> > >> > >> >

