It's not a secret anymore!
The moose likes Other Open Source Projects and the fly likes Problems with diaplayTag Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Problems with diaplayTag" Watch "Problems with diaplayTag" New topic

Problems with diaplayTag

Jyothi Venkatrao

Joined: Aug 20, 2010
Posts: 4
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="#{}" >
<display:column property="status" title="Status" href="someAction!display"/>
<display:column property="status" title="Status"/>


<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.

It is sorta covered in the JavaRanch Style Guide.
subject: Problems with diaplayTag
jQuery in Action, 3rd edition