根据您的需求,
如果要裁剪,请
<s:if>像AleksandrM answer中所述使用它来绘制(或不绘制)该行;
相反,如果您想隐藏它,但希望它在页面中(例如,稍后使用javascript显示它,或在源代码中查看它),则可以使用an
<s:if>来应用(或不应用)隐藏状态:
<tr id="sectionTitle" <s:if test="sectionHidden"></s:if>> <td>This is the section title</td></tr>

根据您的需求,
如果要裁剪,请
<s:if>像AleksandrM answer中所述使用它来绘制(或不绘制)该行;
相反,如果您想隐藏它,但希望它在页面中(例如,稍后使用javascript显示它,或在源代码中查看它),则可以使用an
<s:if>来应用(或不应用)隐藏状态:
<tr id="sectionTitle" <s:if test="sectionHidden"></s:if>> <td>This is the section title</td></tr>