Results 1 to 4 of 4
Like Tree1Likes
  • 1 Post By Tolls

Thread: Generate Report

  1. #1
    Join Date
    Aug 2011
    Posts
    3
    Rep Power
    0

    Default Generate Report

    HI ,

    I AM New TO JAVA , I GENERATE EXCEL IN SERVLET using jxl-2.6 , i want to store it in client Machine ,

  2. #2
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    11,759
    Rep Power
    19

    Default

    Grab the response stream (response.getOutputStream) and stream the worksheet to it (as if you were saving to a file, but using that output stream rather than a fileoutputstream).
    You'll want to set the response mime type correctly, but I don't know that one offhand (application/excel or something along those lines).

  3. #3
    Join Date
    Aug 2011
    Posts
    3
    Rep Power
    0

    Default

    Any Sample Code

  4. #4
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    11,759
    Rep Power
    19

    Default

    None that I could guarantee didn't have bugs.

    The above should be more than enough if you understand servlets.
    And if you don't, then I would question why you're messing about with Excel files before learning the basics.
    DarrylBurke likes this.

Similar Threads

  1. jasper report ,jasper report jar files and maven dependencies.
    By rajuchacha007 in forum Advanced Java
    Replies: 1
    Last Post: 04-09-2010, 08:15 AM
  2. I want to generate PDF report for student details?
    By eswaraaa in forum Java Servlet
    Replies: 1
    Last Post: 12-18-2009, 01:47 AM
  3. How to generate report
    By Shivraj in forum NetBeans
    Replies: 0
    Last Post: 03-24-2009, 12:17 PM
  4. Generate Excel Report from a HTML table
    By Sudha in forum New To Java
    Replies: 0
    Last Post: 02-13-2008, 08:24 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •