title: How to print Java Bean completely using reflection or any other utility
body: <p>I have an Java bean class <code>Person</code> containing 3 variables:</p>
  
  <ul>
  <li>name (String)</li>
  <li>age  (String)</li>
  <li>address (Object). </li>
  </ul>
  
  <p><code>Address</code> contains 3 variables:</p>
  
  <ul>
  <li>street</li>
  <li>door_no</li>
  <li>city</li>
  </ul>
  
  <p>I would like to have a utility which should print all variables in <code>Person</code>. </p>
  
  <p>By this I mean it should print <code>Person</code> &amp; also the <code>Address</code> object contained in it.</p>
  
  <p>I could create a hashmap and put the variable names &amp; values using reflection and print key/value UI in JSP but the issue is I have to apply reflection for <code>Address</code> to add variable/value in the hashmap.</p>
  
  <p>Is there a utility available to do this?</p>