title: Getting the selected value dropdown jstl
body: <p>With this drop down I'll select a value and pass in a url, but with this code i'm not able to get only the selected one, can you guys help me to setup a c:if and mark selected on the side?. Thanks anyway.</p>
  
  <pre><code>&lt;select&gt;
  &lt;c:forEach var="foo" items="${bar}"&gt;
  &lt;option value="${foo}"&gt;${foo}&lt;/option&gt;
  &lt;/c:forEach&gt;&lt;/select&gt;
  
  
  &lt;div class="links" style="font-size: 110%"&gt;
  &lt;a href="someURL?path=${foo}"&gt;someName&lt;/a&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Ex:</p>
  
  <pre><code>&lt;select&gt;
  &lt;c:forEach var="name" items="${names}"&gt;
  &lt;option value="${name}"&gt;${name}&lt;/option&gt;
  &lt;/c:forEach&gt;&lt;/select&gt;
  </code></pre>
  
  <p>After i select the name, place the selected one in the url</p>
  
  <pre><code>&lt;div class="links" style="font-size: 110%"&gt;
  &lt;a href="someURL?path=${name}"&gt;someName&lt;/a&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Sorry, my english isn't that good so it's hard sometimes to express myself</p>