Menu

Display Tag Struts

Help
Kalichar
2006-06-14
2012-10-09
  • Kalichar

    Kalichar - 2006-06-14

    Hi all,

    I am trying to get Display tag working with Struts. I am working on a Search page, that has a criteria and a table of results.

    When a user clicks on the Search button, a Search Struts Action is invoked that performs the search and places the results in the request scope. From then on, I am hoping the display tag will paginate.

    This however is not working when I place the results in the request scope with the "next" link not returning the next page of results.

    <display:table requestURI="/search.do" name="result"
    class="displaytag" pagesize="5"
    defaultorder="ascending" export="true"
    defaultsort="1"
    id="row">
    <display:column property="name" title="<%=id%>" sortable="true" headerClass="sortable" />
    </display:table>

    What am I missing? Do search results need to be in session scope in order for the display tag pagination to work? Clicking on the "next" link goes to the Search action class but the next set of results are not displayed. Any assistance would be greately appreciated.

     
    • Pascal Gillet

      Pascal Gillet - 2007-10-02

      Hi Kalichar,

      Did you find a solution?
      I have exactly the same problem when i want to export data in the request scope. It seems like there is no data in the request parameter anymore when i click on the csv,Excel,Pdf link
      (which invokes the same struts action than the search itself)...

      Thanks for your help.

      Best Regards,

       
      • Pascal Gillet

        Pascal Gillet - 2007-10-03

        I found: see http://displaytag.sourceforge.net/10/faq.html , the section about using displaytag along struts...

         

Log in to post a comment.