在struts2中,jsp页面里使用
<s:if test="${aaa == null}"></s:if>
会报错误:According to TLD or attribute directive in tag file, attribute value does not accept any expressions。
正确是使用方法:
<s:if test="%{aaa == null}">
<td width="7%" nowrap>${aaa}</td>
</s:if>
<s:else>
<td width="7%" nowrap>${bbb}</td>
</s:else>