Minimol Joseph wrote: > Hello, > I am using displaytags with Springframework and have a question on how > to link a column to different pages depending on the column value. > > > What I want to do is > > If (OpenCRs.status== 'Open') then > > <display:column property="appid" href="editCRs.html" paramId="appid" > paramProperty="appid" titleKey="apps.id" sortable="true" /> > > > else > > <display:column property="appid" href="viewCRs.html" paramId="appid" > paramProperty="appid" titleKey="apps.id" sortable="true" /> > > > > Is it possible to do this? If so what would be the tags to put the > conditions? > > > > Thanks >
Yes it is possible. I don't use Spring but I would suggest using the jstl (Java Standard Tag Library) <c:choose>, <c:when> and <c:otherwise> tags. <http://www.onjava.com/pub/a/onjava/2002/08/14/jstl1.html?page=3> Ed! ------------------------------------------------------------------------- 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