I want to generate a table with display tag. One of the column is a status type. And, this status type can be 1 or 0. (active or passive). Table is:
<display:table id="txt" name="student.homeworks" pagesize="20">
<display:column property="homeworkId" title="Id"/>
<display:column property="homeworkName" title="Homework Name" />
<display:column property="studentName" title="Student Name" />
<display:column title="Status">
<c:if test="${statusType == '1'}">
Active
</c:if>
<c:if test="${statusType == '0'}">
Passive
</c:if>
</display:column>
</display:table>
"c" tag is JSTL. But, statusType is always coming as "NULL". I am trying many ways. How to check this parameter correctly?
The documentation of the table tag says:
So, all you need is