title: Multi select dropdown list in spring mvc separated by comma
body: <p>Nearer to this Requirement<a href="https://stackoverflow.com/questions/14322390/using-springmvc-formselect-to-bind-comma-separated-values-to-multiple-dropdown">Link</a></p>
  
  <p>Dropdown list is populated using separate table: stateid, statename</p>
  
  <p>when user click on submit button data is stored as : 2,5,8 (selected options id's)</p>
  
  <pre><code> &lt;form:select path="permit_states" multiple="multiple" class="multiselect col-md-4"&gt;
      &lt;form:options items="${statesList}" /&gt;
   &lt;/form:select&gt;
  </code></pre>
  
  <p>when user click on edit button, i want to show previous selected options as checked:
  In jsp's using jstl functions and expression language how we can acheive?!</p>
  
  <p><a href="https://i.stack.imgur.com/rj0Wx.jpg" rel="nofollow noreferrer">User Click on Edit</a></p>