title: Getting session variable in jsp using struts2 iterator tag
body: <p>Hi i am trying to iterate a list from a session in my jsp. 
  The list contains complex objects</p>
  
  <p>my code is shown below</p>
  
  <pre><code>&lt;s:if test="#session.rideDetails != null"&gt;    
      &lt;s:iterator value="#session.rideDetails" status="ride123"&gt;
         &lt;s:textfield name='test' value='&lt;s:property value="#ride123.index"/&gt;'&gt;&lt;/s:textfield&gt;
         &lt;s:textfield name='test1' value='&lt;s:property value="#ride123.route.location.name"/&gt;'&gt;&lt;/s:textfield&gt;
     &lt;/s:iterator&gt;
  &lt;/s:if&gt; 
  </code></pre>
  
  <p>But im not getting the expected result, is there any syntax error in the above code?</p>