title: set multiple default value in select tag in struts2
body: <p>How can I set multiple default value using select tag in struts2. For e.g I have list of names with "nameA, nameB, nameC". I want that these three names will be selected by default. I can populate a list but struggling to set multiple default value.</p>
  
  <pre><code>&lt;s:select id        = "name" 
            size      = "5" 
            name      = "nameForm.nameIds" 
            cssStyle  = "width:365px;margin-top:10px; margin-bottom:10px;"
            list      = "name.nameList" 
            listKey   = "id" 
            listValue = "displayName" 
            multiple  = "true" 
  &gt;&lt;/s:select&gt;
  </code></pre>