title: How to retrieve bean value from JSP tag
body: <p>i have a jsp page, where i want to display some values from a list of "order" objects from a POJO.</p>
  
  <pre><code> &lt;c:forEach items="${orders}" var="orders"&gt;
   &lt;form name="employee" action="FrontController" method="POST"&gt;
        &lt;input type="hidden" name="command" value="employee"&gt;
         &lt;input type="submit" value="Submit"&gt;
      &lt;tr&gt;
          &lt;td&gt;${orders}&gt;
  </code></pre>
  
  <p>whenever i use the dot operator on orders, to get the value. (for example orders.height), it returns and error, it might be because i'm trying to access a list and not an object.</p>
  
  <pre><code>        &lt;td&gt;${orders}&gt;
  
      &lt;/tr&gt;
  &lt;/c:forEach&gt;
  </code></pre>
  
  <p>is there any way to get an attribute out from my order object.</p>
  
  <p>here is the servlet code, the creates the order list. </p>
  
  <pre><code>@Override
  String execute(HttpServletRequest request, HttpServletResponse response) throws LoginSampleException {
      try{
          ArrayList&lt;OrderSample&gt; orders =UserMapper.showOrders();
           request.setAttribute("orders", orders);
        } catch (ClassNotFoundException ex) {
          Logger.getLogger(Employee.class.getName()).log(Level.SEVERE, null, ex);
      } catch (SQLException ex) {
          Logger.getLogger(Employee.class.getName()).log(Level.SEVERE, null, ex);
      } 
  
      return "employeepage";
  }
  </code></pre>