Hello,
I am using Display Tag Library in a web application based on STRUTS.
In a table, I want to aload an action (delete) on each row, but I would like to stay on the same page, not to go back to first page.
I noticed that I may have this -d<>-p= parameters in my request.
Does anyone has an idea to change to following jsp so it get theses parameters ?
the page no's request parameter is random string,
I use request.getQueryString() to save the sate info of display tag, and rewrite request url when user action is done.
but there will be some error.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
I am using Display Tag Library in a web application based on STRUTS.
In a table, I want to aload an action (delete) on each row, but I would like to stay on the same page, not to go back to first page.
I noticed that I may have this -d<>-p= parameters in my request.
Does anyone has an idea to change to following jsp so it get theses parameters ?
<display:table name="accounts" pagesize="10" requestURI="/CreateAccount.do?action=View" decorator="ch.lodh.econfirmation.struts.decorator.AccountDecorator">
<display:column property="accountNumber" titleKey="heading.account.number" sortable="true" />
<display:column property="nmTitle" titleKey="heading.account.name" sortable="true"/>
<display:column property="titleIsVisible" titleKey="heading.account.title.visible" sortable="true"/>
<display:column property="cdUg" titleKey="heading.account.ug" sortable="true" />
<display:column property="cdEntity" titleKey="heading.account.entity" sortable="true"/>
<display:column property="society.nmSociety" titleKey="heading.account.society" sortable="true"/>
<display:column titleKey="heading.edit" href="../UpdateAccount.do?action" paramId="accountId" paramProperty="idAccount" align="center"><img src="../img/rename.gif"/></display:column>
<display:column titleKey="heading.delete" href="../DeleteAccount.do?action=Remove" paramId="accountId" paramProperty="idAccount" align="center"><img src="../img/delete.gif"/></display:column>
</display:table>
the page no's request parameter is random string,
I use request.getQueryString() to save the sate info of display tag, and rewrite request url when user action is done.
but there will be some error.