开发者

display tag sorting duplicate the last action performed on the page

I have display tag like this.

<display:table class="displayTable" id="orgList"
                 name="${sessionScope.organisationArray}" requestURI="" pagesize="13"
                defaultsort="1" sort="list">
          <display:column property="organisationName"
                title="Organisation Name" sortable="true" headerClass="sortable"/>
          <display:column property="description" title="Description" />
</display:table>

I got the ArrayList of the data from Session.

The problem is whenever I click to sort t开发者_JAVA技巧he Organisation Name column, it automatically performs the last action. For example, I add a new organistation, then I back to the list. And I click to sort, then adding of a new organisation perform again.

When I check the URL on the sortable column, it is pointing to the last action (Add action ) URL. If last action is delete, it is pointing to Delete action. Second time click on sortable column is OK, it works well.

But just first time straight back from another action, sorting is duplication the same action. How can I overcome this problem?

Thanks ahead.


Finally I fix it just by adding requestURI="blahblah.action" which is an action just to display all the list.

Thanks to the following link: coderanch.com/t/53098/Struts/display-tag-sorting-Struts Thanks.

please check this link for detail info.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜