title: excel spreadsheet in servlet
body: <p><p>
  Hello,
  <p>
  I want to build excel spreadsheet with servlet programming. I used tab-separated data for excel.</p>
  
  <pre><code>response.setContentType("application/vnd.ms-excel");
  PrintWriter out=response.getWriter();
  out.println("\t\tFruits");
  out.println("\tName\tPrice");
  out.println("\tApples");
  out.println("\tMangoes");
  </code></pre>
  
  <p>My query is that i want the title fruits to be in the center i mean i want to merge the cell. I want the output of Fruits from cell B2 to D2.What wld i have to update for merging the cell.
  I know if we create a tabular data then it takes rowspan and colspan attribute but for this what to use?? </p>