POI HSSF generate 2nd excel worksheet.

  • Thread starter Barbara Vernaeve
  • Start date
B

Barbara Vernaeve

Hi all,

I have the following problem:
when I hit a button on a jsp page, the struts action does the
following: generate a HSSF and write this to a ByteArrayOutputStream
(baos). This baos is then handled in a servlet, which shows the correct
Excel worksheet.
This works the first time.
However, when I try to execute this a second time without closing the
previous excel worksheet, the data in the worksheet doesn't change or
no new worksheet is created.
When I open an empty excel sheet (just this, no previous excel open)
and hit the button, it works.
Anyone an idea what goes wrong here?

Thanks in advance,

Barbara
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,817
Latest member
DicWeils

Latest Threads

Top