Welcome to the Java Programming Forums

The professional, friendly Java community. 21,500 members and growing!

The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: Export Excel which has more than 1 worksheet

  1. #1
    Junior Member
    Join Date
    Mar 2011
    Thanked 0 Times in 0 Posts

    Default Export Excel which has more than 1 worksheet

    Anyone has any idea how to generate & stream an excel sheet in jsp.

    Please note: The excel sheet will have two worksheets inside & we should stream out the excel sheet to the user on JSP itself without storing the excel file on the applicatoin server.

    Action I performed: Our source is 2 csv files. I have used CSVReader to read those files & create excel sheet with two tabs using POI Libraries which is causing me to store excel sheet on the server.

    Need Help:
    How to generate an excel sheet which has more than one worksheets using JSP & also how to set that in the response.header ? Please advice

    Please let me know if my requirements are not clear. Appreiate your help.

  2. #2
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Thanked 833 Times in 772 Posts
    Blog Entries

    Default Re: Export Excel which has more than 1 worksheet

    I believe POI has the ability to write to any OutputStream, so you should be able to specify the outputstream of the jsp/servlet OutputStream itself. Prior, set the response.header Content-Type...for excel I'm not sure off the top of my head but you should be able to find it from google.

Similar Threads

  1. Replies: 1
    Last Post: April 7th, 2011, 07:01 AM
  2. Is it possible to export Stored Procedures using JDBC?
    By sid7 in forum JDBC & Databases
    Replies: 0
    Last Post: August 28th, 2010, 05:34 PM
  3. How to export data from web page to msword or pdf
    By verma86 in forum JavaServer Pages: JSP & JSTL
    Replies: 1
    Last Post: April 6th, 2010, 05:49 AM
  4. JRC export report class def not found
    By vishalthakur86 in forum Java IDEs
    Replies: 0
    Last Post: November 11th, 2009, 04:19 AM
  5. Export to excel
    By ebosysindia in forum File I/O & Other I/O Streams
    Replies: 7
    Last Post: May 14th, 2009, 06:25 AM