title: Setting page to 1 on DisplayTag after submitting a form to a Struts action
body: <p>Using the DisplayTag library with Struts 2 and external sorting (PaginatedLists) works great on my project.</p>
  
  <p>Unfortunately, when I send to DisplayTag a non Paginated list and try to let DisplayTag to do the pagination, that is where the problems raise. </p>
  
  <p>Currently, I can navigate to all pages of the results that I have without any problem. 
  I am facing problems when I submit again the form to Struts to get the new results. Then the DisplayTag does not reset its page number to 1 but remains on the page it was on my last page selection and retains it. </p>
  
  <p>So my list contains now different amount of data but DisplayTag is still showing on the page that i was before. </p>
  
  <p>I got with <code>request.getParameter("d-16544-p")</code> the current page number and tried to reset this manually to 1 with no luck. </p>
  
  <p>Also the </p>
  
  <pre><code>(Integer.parseInt
      (request.getParameter(
          (new ParamEncoder(tableId)
                           .encodeParameterName(TableTagParameters.PARAMETER_PAGE)
          )            
      )) - 1 ) * pageSize 
  </code></pre>
  
  <p>suggested in the DisplayTag docs did not really help much. </p>
  
  <p>So my question is, how is it possible to reset Displaytag to go to page "1" after I submit a new request to a Struts 2 action and get back the results. </p>