I am having problems using conditional displayTag in my
jsp. I have a table being displayed using displayTag in my jsp. One of the display:column has href. I want this column to have href attibute based on a condition. I am using struts2 <s:if> to specify my condtion. Here is the code.
<div id="tabledata">
<display:table name="tablelist" id="bean">
<display:column property="fileName" title="File Name"/>
<display:column property="strAmt" title="Amount" />
<s:if test="#{bean.link}" >
<display:column property="status" title="Status" href="someAction!display"/>
</s:if>
<s:else>
<display:column property="status" title="Status"/>
</s:else>
</display:table>
</div>
<s:if> is apparently not seeing the bean. How can make the 'bean' available to it ? Or how can I make the display:column to have href based on a condition with or without struts2 ?
Any help would be appreciated.
Thanks,
Jyothi