title: Trying to retrieve an arraylist in a session variable
body: <p>So Im trying to store an a arraylist in a session variable and also be able to retrieve it.It is for a cart on a website.The problem is retrieving it.
  Here is what I have so far in the servlet</p>
  
  <pre><code>      HttpSession session = request.getSession();
         ArrayList&lt;Dvd&gt; dvds;
          dvds = new ArrayList&lt;Dvd&gt;()= session.getAttribute("ProductsInCart");
  </code></pre>
  
  <p>The compiler error is unexpected type:required variable,found value</p>
  
  <p>Thanks</p>