i am using display tag for showing table in my jsp page. I need to show different images in one column of table based on other column’s value.
Below is the code snippet from my jsp page:
<s:if test="appStatusList.size() != 0">
<display:table name="appStatusList" class="its">
<display:caption>App Status</display:caption>
<display:column property="currentStatus" title="Current Status" />
<display:column property="updateDate" title="Update Date" />
<display:column > <img src="/AppUpdatePortal/images/delete.png" /></display:column>
</display:table>
</s:if>
How can i change image src based on other column value. Please help.
Thanks
Jyoti
Read http://www.displaytag.org/1.2/tut_implicitobjects.html. If you add an id attribute to your
display:tabletag, you may have access to the current object of the list.