title: Export Data to MS Word (.doc) in Servlet?
body: <p>I'm creating an export screen in servlet, in Which user can using search function and get the result in Ms Word(.doc) format. 
   I tried to query data from Database and create .doc file directly using </p>
  
  <ul>
  <li>Apache POI</li>
  <li>Docx4j</li>
  </ul>
  
  <p>But I faced with the complicacy of make output file in form. </p>
  
  <p>I want to know, are there any way that I can create a template file in advanced, and fill out the data to template to create output .doc file and stream to client or convert to Doc file from another format like : HTML file, etc ? </p>
  
  <p>Thank in advanced ! </p>