Results 1 to 2 of 2
  1. #1
    adeep is offline Member
    Join Date
    Oct 2009
    Posts
    1
    Rep Power
    0

    Default Excel generating from servlet

    Hi friends,

    I am generating excel from servlet, excel genarated correctly but requirement is that it should save to defined path....
    that is when user click on save button excel should saved thanks in advance
    Last edited by adeep; 10-09-2009 at 11:10 AM.

  2. #2
    travishein's Avatar
    travishein is offline Senior Member
    Join Date
    Sep 2009
    Location
    Canada
    Posts
    684
    Rep Power
    5

    Default Content Disposition HTTP Header

    In the servlet before you start sending the excel document content back to the user, set the content-disposition HTTP header, something like

    Content-disposition: attachment; filename=myfile.xls

    see also: How To Raise a "File Download" Dialog Box for a Known MIME Type

Similar Threads

  1. how can i link html+servlet+xml to form servlet
    By balachandarr in forum Java Servlet
    Replies: 0
    Last Post: 04-15-2009, 04:06 PM
  2. Replies: 1
    Last Post: 12-02-2008, 12:23 AM
  3. Generating PDF from XML with servlet
    By Preethi in forum Advanced Java
    Replies: 2
    Last Post: 10-30-2008, 05:50 PM
  4. Save data from Excel sheet to servlet
    By chandu.v in forum Java Servlet
    Replies: 2
    Last Post: 04-10-2008, 01:51 PM
  5. Replies: 1
    Last Post: 08-07-2007, 03:47 PM

Posting Permissions

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