File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Java Interview Guide this week in the Jobs Discussion 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.

I agree. Here's the link:
subject: Problems with diaplayTag
jQuery in Action, 3rd edition