title: Mail merge from Java
body: <p>Does anyone have any experience with doing mail merge from Java on a word document?  I need to support both doc and docx formats.</p>
  
  <p>I have heard of Apache POI and docx4j.  However, from reading around I'm sure how good the word support is in POI.  docx4j only supports docx format as far as I can see.</p>
  
  <p>Can any suggest either one of the above (and correct my knowledge on support) or another appropriate library.  If necessary I would be willing to use one lib for doc and another for docx.</p>
  
  <p>Thanks.</p>