title: Print a "tree" structure in JSP page
body: <p>I'm trying to print out a "tree" structure in my JSP page that looks something like this:</p>
  
  <pre><code>Root
   |
   |----Dependencies
   |        |----A
   |        |----B
   |        |----C
   |
   |----Dependents
            |----D
            |----E
  </code></pre>
  
  <p>I'm hoping that someone around here knows of some utility that would help me do my job (it can use any technology, just as long as I can insert it in my JSP page). The Root and the other variables are all Strings (A, B, C etc...).</p>
  
  <p>I'm planning on using something like this: (I haven't written this yet, so I'm not sure if it'll work...) </p>
  
  <pre><code>public class DependencyTree 
  { 
    private String root; 
    private ArrayList&lt;String&gt; dependencies, dependents; 
  } 
  </code></pre>
  
  <p>Basically, root corresponds to "root" on my example above, and the two ArrayLists contain A, B, C and D, E respectively. </p>