• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

Problems with diaplayTag

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic