title: Extend displaytag with struts 1. Problem in keeping current page and sort condition
body: <p>I am implement displaytag by extend the standard. Please see detail below.</p>
  
  <p><em>JSP</em></p>
  
  <pre><code>display:table name="testList" id="obj" requestURI="testAction.do?pageAction=init" pagesize="${paging_size}" sort="list" class="table" **sort="external"** excludedParams="*" decorator="dyndecorator" export="false" **keepStatus="true"** 
  
    display:setProperty name="pagination.pagenumber.param" value="page" 
    display:setProperty name="pagination.sort.param" value="sort" /
    display:setProperty name="pagination.sortdirection.param" value="dir" 
  
    display:column property="testNo" title="Test no." **sortable="true"** **sortName="testNo"** 
  
    display:column property="testValue" title="Test value" **sortable="true"** **sortName="testValue"** 
  display:table
  </code></pre>
  
  <p><em>PaginatedListImpl</em></p>
  
  <pre><code>public PaginatedListImpl(HttpServletRequest request) {
   sortCriterion = request.getParameter("sort");
   sortDirection = "desc".equals(request.getParameter("dir"))? SortOrderEnum.DESCENDING : SortOrderEnum.ASCENDING;
   pageSize = DEFAULT_PAGE_SIZE;
   String page = request.getParameter("page");
   index = page == null? 0 : Integer.parseInt(page) - 1;
  }
  </code></pre>
  
  <p>JAVA</p>
  
  <pre><code>public PaginatedListImpl getTest(
   Criteria criList = session.createCriteria(TestDto.class);
   criList.setFirstResult(pageDisplay.getFirstRecordIndex());
   criList.setMaxResults(pageDisplay.getObjectsPerPage());
   pageDisplay.setList(criList.list());
   pageDisplay.setTotal((Integer) criTotal.uniqueResult());
   return pageDisplay;
  }
  </code></pre>
  
  <p><strong>Anyway, I found problem on browser</strong> when the browser render the result</p>
  
  <ol>
  <li><p>when I move the mouse over page_no. It will show "http://localhost:8080/WebProject/testAction.do?<strong>page=2</strong>&amp;pageAction=init"</p></li>
  <li><p>when I move the mouse over column name. It will show "http://localhost:8080/WebProject/testAction.do?<strong>sort=testValue</strong>&amp;*<em>dir=asc</em>*pageAction=init"</p></li>
  </ol>
  
  <p>but <strong>I need the link of both</strong> like this
  "http://localhost:8080/WebProject/testAction.do?<strong>page=2&amp;sort=testValue&amp;dir=asc</strong>&amp;pageAction=init"</p>
  
  <p>I search on google many time but I still have a problem.</p>
  
  <p>How can I do? Someone Please help me out of problem.</p>
  
  <p>Thank you a lot..</p>