• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JSP and Excel

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I submit a JSP page from a Javascript function that displays data and has two hyperlinks. One generates an Excel spreadsheet (using HSSF) and the other returns to the JSP it just came from (It's a criteria selection screen).

My problem is when I select the "Generate Spreadsheet" (which submits another JSP containing the HSSF code), the spreadsheet is generated but the Excel dialog box (open, save, close, cancel) appears twice. When I select "open" (twice) the spreadsheet comes up correctly. When I close the spreadsheet and click on the "Return to Criteria Selection" hyperlink, the spreadsheets generates again. It seems the "Generate Spreadsheet" routine has taken control. (I can return to the previous screen by hitting the BACK button).

Thanks for any help.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic