title: How to pass a List from the controller to jsp?
body: <p>I am implementing a bulletin board with spring framework.</p>
  <p>To show the list of articles on jsp, I got some info from DB and saved it to <code>List&lt;BulletinBoardList&gt;</code>.</p>
  <p>What I want to do is to take this List to jsp and save it. I tried with the code below:</p>
  <pre><code>@RequestMapping(value = &quot;/&quot;, method = RequestMethod.GET)
  public String home(Locale locale, Model model) {
      logger.info(&quot;Welcome home! The client locale is {}.&quot;, locale);
  
      /*
      Date date = new Date();
      DateFormat dateFormat = DateFormat.getDateTimeInstance(DateFormat.LONG, DateFormat.LONG, locale);
      
      String formattedDate = dateFormat.format(date);
      
      model.addAttribute(&quot;serverTime&quot;, formattedDate );
      */
      List&lt;BulletinBoardList&gt; result = sqlSession.selectList(&quot;board.getList&quot;);
      
      model.addAttribute(&quot;list&quot;, result);
      
  
      
      
      return &quot;home&quot;;
  }
  </code></pre>
  <p>Next, this code is for retrieving the List from controller:</p>
  <pre><code>&lt;%@ page import com.heesu.third.BulletinBoardList, java.util.List %&gt;
  &lt;% BulletinBoardList list = ${list} %&gt;
  </code></pre>
  <p>But it never works.</p>