title: In JSP, How to display the selected value in a dropdown onto <c:out>
body: <p>In my JSP page, I am having a dropdown which contains two values. At any point in time, either one will always be selected. I want to print this selected value in the same JSP page through a c:out but I am not able to do so. Request help. Thanks. </p>
  
  <p>My code is as follows,</p>
  
  <pre><code>&lt;li class="Selectbox"&gt;
  
  &lt;select id="slbTypeId" name = "slbTypeName" onChange="Slb.onChangeType();" 
  style="width: 200px; height: 23px; margin-left: 40px; margin-bottom: 20px;" &gt; 
  
  &lt;c:forEach items="${TYPES}" var="slbType"&gt;
  &lt;option value="slbType" tempCode="${slbType}"&gt;
  &lt;spring:message code="label.menu.${slbType}"/&gt;&lt;/option&gt;
  &lt;/c:forEach&gt;
  &lt;/select&gt;                                
  &lt;/li&gt;
  </code></pre>