title: Set selected option on existing select tag with jstl
body: <p>So I have a select for the grade on each subject. It's predefined and hence I don't have to store grades as a table in the database. I have a list of qualifications and I using jstl for each like this: <code>&lt;c:forEach items="${qualificationdetails}" var="qd"&gt;</code>.</p>
  
  <p>For each item I am producing a select like this.</p>
  
  <pre><code>&lt;select class="grade" title="Grade Obtained"&gt;
     &lt;option value="1"&gt;1&lt;/option&gt;
     &lt;option value="2"&gt;2&lt;/option&gt;
     &lt;option value="3"&gt;3&lt;/option&gt;
     &lt;option value="A"&gt;A&lt;/option&gt;
     &lt;option value="B"&gt;B&lt;/option&gt;
     &lt;option value="C"&gt;C&lt;/option&gt;
     &lt;option value="D"&gt;D&lt;/option&gt;
     &lt;option value="E"&gt;E&lt;/option&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>Is it possible to set the selected option using my variable <strong>qd</strong> ? something like </p>
  
  <pre><code>&lt;option value="${qd.grade}" selected="selecetd"&gt;${qd.grade}&lt;/option&gt;
  </code></pre>
  
  <p>This will add a duplicate option to the select. I think it would a bit "clunky" to make an array with the grades and send it accross for generating the options. Any ideas ?</p>