title: Getting Blank page while iterating through ArrayList in JSTL
body: <p>Here is my Servlet in which adding the textbox values to an ArrayList. I am also using JavaBeans.</p>
  
  <pre><code>protected void doPost(HttpServletRequest request,
              HttpServletResponse response) throws ServletException, IOException {
  
          String companyName = request.getParameter("txtCompany");
          double price = Double.parseDouble(request.getParameter("txtPrice"));
          HttpSession session = request.getSession();
          // Invoice r = new Invoice();
  
          ArrayList&lt;Invoice&gt; list = (ArrayList&lt;Invoice&gt;) session
                  .getAttribute("EInvoice.list");
  
          if (list == null) {
              list = new ArrayList&lt;Invoice&gt;();
          }
          list.add(new Invoice(companyName, price));
  
          session.setAttribute("EInvoice.list", list);
  
          String url = "/Show.jsp";
  
          RequestDispatcher rd = getServletContext().getRequestDispatcher(url);
          rd.forward(request, response);
  
      }
  </code></pre>
  
  <p>Here is the Show.jsp</p>
  
  <pre><code>   &lt;%@ page language="java" contentType="text/html; charset=ISO-8859-1"
          pageEncoding="ISO-8859-1"%&gt;
      &lt;%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%&gt;
  
      &lt;!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&gt;
  
  
      &lt;html&gt;
      &lt;head&gt;
      &lt;meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"&gt;
      &lt;title&gt;Show&lt;/title&gt;
      &lt;/head&gt;
      &lt;body&gt;
          &lt;c:forEach var="list" items="${EInvoice.list}"&gt;
              &lt;h1&gt;${list.companyName} ${list.price}&lt;/h1&gt;
          &lt;/c:forEach&gt;
      &lt;/body&gt;
      &lt;/html&gt;
  </code></pre>
  
  <p>I expect it to show the entered textbox values, but all I am getting is a blank page. Any idea why? Pardon any silly code mistakes as I am learning JSTL.</p>