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.
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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,
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
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,
I found: see http://displaytag.sourceforge.net/10/faq.html , the section about using displaytag along struts...