title: Struts 1.3 ActionForm - retrieving a collection from multiselect dropdown insted of using arrary
body: <p>What I cannot figure out is how to select multiple input from multielect drop down to my Action.By using a collections instead of array.I have posted the both jsp code and actionform.</p>
  
  <p>This is my jsp:</p>
  
  <pre><code>&lt;table class="table-striped" style="width: 100%;"&gt;
                                                  &lt;tr&gt;
                                                      &lt;th style="border: none;"&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;label class="control-label" &gt;Grade&lt;/label&gt;&lt;/th&gt;
                                                      &lt;th style="border: none;"&gt;                                                        
                                                          &lt;html:select name="GradeBoardConfigureForm" property="grade" multiple=""&gt;
                                                              &lt;html:option value=""&gt;Grade List&lt;/html:option&gt;
                                                              &lt;html:optionsCollection  name="GradeBoardConfigureForm" property="gradelist" label="grade" value="gradeid"/&gt;
                                                          &lt;/html:select&gt;
                                                      &lt;/th&gt;                         
                                                  &lt;/tr&gt;
                                              &lt;/table&gt;
  </code></pre>
  
  <p>FormBean:</p>
  
  <pre><code>public class GradeBoardConfigureForm extends ActionForm {
  
      private String board;
      private List grade;
  
      private List gradelist;
      private List boardlist;
  
      public String getBoard() {
  
          return board;
      }
  
      public void setBoard(String board) {
          this.board = board;
      }
  
      public List getGradelist() {
          gradelist = new ArrayList&lt;&gt;();
          DAOFactory factory = HibernateDAOUtil.getDAOFactory();
          GradeDao gradedao = factory.getGradeDao();
          List&lt;Academicgradeform&gt; gradedaolist = gradedao.list();
          gradelist.addAll(gradedaolist);
          return gradelist;
      }
  
      public void setGradelist(List gradelist) {
          this.gradelist = gradelist;
      }
  
  
  
      public List getBoardlist() {
          boardlist = new ArrayList&lt;&gt;();
          DAOFactory factory = HibernateDAOUtil.getDAOFactory();
          BoardDao boarddao = factory.getBoardDAO();
          List&lt;Academicboardform&gt; boarddaolist = boarddao.list();
          boardlist.addAll(boarddaolist);
          return boardlist;
      }
  
      public void setBoardlist(List boardlist) {
          this.boardlist = boardlist;
      }
  
      public List getGrade() {
          return grade;
      }
  
      public void setGrade(List grade) {
          this.grade = grade;
      }
  
  }
  </code></pre>