title: Passing a List from Servlet to JSP
body: <p>When I try to set the value of a list in Servlet to a session variable and access it JSP like,</p>
  
  <p><strong>doGet</strong></p>
  
  <pre><code>HttpSession session = request.getSession(true);
  session.setAttribute("MySessionVariable", authorizeUserList);
  </code></pre>
  
  <p><strong>JSP</strong></p>
  
  <pre><code>&lt;%List lst = session.getAttribute("MySessionVariable");%&gt;
  </code></pre>
  
  <p>I get an error in JSP as "List cannot be resolved to a type"</p>
  
  <p>So how should I do this? I want to pass a list from Servlet to JSP and populate a Drop down.</p>