title: How to iterate the session in JSP page?
body: <p>How to iterate the session and keep the every submit  value in same page till the session end?</p>
  
  <pre><code>&lt;html&gt;
  &lt;body&gt;
  &lt;s:form action="verify"&gt;
      &lt;s:textfield name="stuname" label="Enter Username" /&gt;&lt;br&gt;
      &lt;s:textfield name="stuage" label="Enter Age" /&gt;&lt;br&gt;
      &lt;s:textfield name="stumarks" label="Enter Marks" /&gt;&lt;br&gt;
      &lt;s:textfield name="country" label="Enter Country" /&gt;&lt;br&gt; 
      &lt;s:submit value="Click" id="submit"  /&gt; 
  &lt;/s:form&gt;
  &lt;s:iterator&gt;
  Name:&lt;s:property value="#session.a" /&gt;&lt;br&gt;
  Age:&lt;s:property value="#session.b" /&gt; &lt;br&gt;
  Marks:&lt;s:property value="#session.c" /&gt;&lt;br&gt;
  Country:&lt;s:property value="#session.d" /&gt;
  &lt;/s:iterator&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>