I am really new to Struts2. I have the below Struts2 tag, I need to check if property value="#attr.row.Commentaire
is not empty and if it's not, display a small icon where the user can click it and consult the contents of the property value="#attr.row.Commentaire
. How can I use the if
tag of Struts2 efficiently to do that?
<display:column title="Commentaire" sortable="true" sortProperty="Commentaire"
class="alerte_td_commentaire">
<s:property value="#attr.row.Commentaire"/>
Use the following code
The
if
tag uses thetest
attribute to evaluate OGNL expression to a boolean value.You may also want to use an
a
tag which renders a HTML anchor tag that could be used combined with theif
tag toThere's also a
debug
tag that could be used to wrap other tags to show you a link that will render a debug data.