title: how to iterate a ArrayList from session into JSP using Struts 2 OGNL tags
body: <p>I have a class where I am creating a non empty <code>ArrayList</code> and putting it is not a session. Now, I want to iterate that list which kept in session into my JSP page.</p>
  
  <p>I tried it but nothing is coming.</p>
  
  <p>in action class</p>
  
  <pre><code>..................
  books = new ArrayList&lt;Bookdetails&gt;();
  session.put(BillTransactionBooksConstants.BOK, books);
  return SUCCUSS;
  </code></pre>
  
  <p>Note : I tested my list is not empty and it is correctly adding into session.
  My only problem is how can I show this list into my JSP from session.</p>
  
  <p><code>BillTransactionBooksConstants</code>: </p>
  
  <pre><code>package v.esoft.actions.booktransaction; 
  public class BillTransactionBooksConstants 
  {
      public static final String BOK = "BOK"; 
  }
  </code></pre>
  
  <p><code>shortbill.jsp</code>:</p>
  
  <pre><code>&lt;s:iterator value="#session.BillTransactionBooksConstants.BOK" status="userStatus"&gt;
      &lt;s:property value="Bookdetails.bookTitile" /&gt;
      &lt;br/&gt;
  &lt;/s:iterator&gt;
  </code></pre>