title: Create Excel File with multiple work sheets from JavaScript/Jquery
body: <p>We have a Servlet that does a back-end DB query and displays results in a web page using HTML table. The number of columns and data is dynamic depending on user requests and it all works fine. Now we need to add a button to export this table data into excel. </p>
  
  <p>This i think can be achieved straight-forward using approaches like below:</p>
  
  <p><a href="http://wsnippets.com/export-html-table-data-excel-sheet-using-jquery/" rel="nofollow">http://wsnippets.com/export-html-table-data-excel-sheet-using-jquery/</a>
  or</p>
  
  <p><a href="http://www.hybridplanet.co.in/tutorial/javascript/how-to-create-csv-or-excel-file-from-json-via-javascript" rel="nofollow">http://www.hybridplanet.co.in/tutorial/javascript/how-to-create-csv-or-excel-file-from-json-via-javascript</a></p>
  
  <p>But the requirement is in addition to exporting results, we also need to add another work-sheet in the excel that gives some information about the query used.</p>
  
  <ol>
  <li>Is it possible to create excel work-sheets and use them from JavaScript/Jquery? Something like the functionality available in apache poi api?</li>
  <li>Or should i follow some other approach instead of javascript/jquery? We don't want to go back to the server and make another DB call. </li>
  </ol>
  
  <p>Please advise and thanks for the help. </p>