Thank you Ed for the reply.
I tried the suggestion but it always defaults to the first value
[code]
......
<c:set var="s" value="Aborted"/>
<display:table name="model.changemanagement" class="table" defaultsort="1"
defaultorder="descending" requestURI="" id="CRList" pagesize="5" >
<c:choose>
<c:when test="${CRList.status == s}">
<display:column property="appid" href="editCR.html" paramId="appid"
paramProperty="appid" titleKey="apps.id" sortable="true" />
</c:when>
<c:otherwise>
<display:column property="appid" href="viewCRs.html" paramId="appid"
paramProperty="appid" titleKey="apps.id" sortable="true" />
</c:otherwise>
</c:choose>
<display:column property="appname" title="Name" sortable="true" />
<display:column property="servername" title="Server" sortable="true" />
.................
[/code]
But it displays all the records with href pointing to editCR.html.
But if I use the following code without displaytags it displays the records
correctly. What could be wrong?
[code]
<table >
<c:forEach var="CRList" items="${model.changemanagement}">
<c:choose>
<c:when test="${CRList.status == s}">
<tr bgcolor="#FFFF88">
<td><b><a href="<c:url value="/CRTest/editCRs.html"><c:param name="appid"
value="${CRList.status}"/></c:url>">
<font color="BLACK"><c:out value="${CRList.status}"/></font>
</a></b></td>
</tr>
</c:when>
<c:otherwise>
<tr bgcolor="#FFFF88">
<td><b><a href="<c:url value="/CRTest/viewCRs.html"><c:param name="appid"
value="${CRList.status}"/></c:url>">
<font color="BLACK"><c:out value="${CRList.status}"/></font>
</a></b></td>
</tr>
</c:otherwise>
</c:choose>
</c:forEach>
</table>
[/code]
_________________________________________________________________
Helping your favorite cause is as easy as instant messaging. You IM, we give.
http://im.live.com/Messenger/IM/Home/?source=text_hotmail_join
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
displaytag-user mailing list
displaytag-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-user