title: Automatically generate HTML pages in Java
body: <p>I am developing a Java desktop application. I have a need to create HTML pages through my application.  When the user clicks on <kbd>View in Browser</kbd> button a HTML page should be created with some details and shown it to the user. </p>
  
  <p>Is there a way I can do this?  Is there are any resources I can use in this situation? </p>
  
  <p>Any suggestions are warmly welcome.</p>