I want to create edit , delete link in display tag with struts2. How can i do so ? If anybody knows please help me ....
i am doing this.
<display:column property="id" title="ID" href="details.jsp" paramId="id" />
but the link is not going to details.jsp .It doesn't go anywhere . what can be the possible reason
You can write your stuff within the tag like this:
<display:table id="row" >
<display:column property="id" title="ID" paramId="id" >
<a href="details.jsp?${row.id}">Details</a>
</display:column>
</display:table>
It is done by the following code.
<display:column title="Edit">
<s:url id="updateUrl" action="marketing/update.action">
<s:param name="id" value="#attr.countrylist.id" />
</s:url>
<s:a href="%{updateUrl}" theme="ajax" targets="countrylist">Update</s:a>
</display:column>
Thanks for all the answers
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With