POI HSSF generate 2nd excel worksheet.

Discussion in 'Java' started by Barbara Vernaeve, Feb 1, 2005.

  1. 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
    Barbara Vernaeve, Feb 1, 2005
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Joe C

    Jakarta POI HSSF

    Joe C, Jul 26, 2004, in forum: Java
    Replies:
    2
    Views:
    3,382
    Shane Mingins
    Jul 27, 2004
  2. thomprl

    POI HSSF and Images

    thomprl, Feb 4, 2005, in forum: Java
    Replies:
    0
    Views:
    588
    thomprl
    Feb 4, 2005
  3. vidhya
    Replies:
    0
    Views:
    456
    vidhya
    Jul 20, 2005
  4. cosmo
    Replies:
    1
    Views:
    1,781
    salma
    Jan 18, 2008
  5. davisoski
    Replies:
    0
    Views:
    1,427
    davisoski
    Aug 16, 2009
Loading...

Share This Page