title: Rendering a nested list with JSP
body: <p>I need to render a 3-level deep list of items via JSP. Let's say I have beans with String properties "Country", "City", "Street". I need to build a heirarchy of UL and LI tags to show streets such that they are listed under the appropriate city, and such that each city is listed under the appropriate country.</p>
  
  <p>Example:</p>
  
  <pre><code>&lt;ul&gt;
  &lt;li&gt;United States
      &lt;ul&gt;
      &lt;li&gt;Washingron
              &lt;ul&gt;
          &lt;li&gt;Independence Ave&lt;/li&gt;
          &lt;li&gt;23d Street&lt;/li&gt;
          &lt;/ul&gt;
      &lt;/li&gt;
      &lt;li&gt;Detroit
          ...
      &lt;/li&gt;
      &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;United Kingdom
  ...
  &lt;/li&gt;
  &lt;/ul&gt;
  </code></pre>
  
  <p>Obviously, I could use forEach, but properly opening and closing tags for each list would require tons of if statements. Is there some simple way to do this via JSTL?</p>