52
我想只顯示基於東西,如果一個字符串不等於:如何比較字符串是否不相等?
<c:if test="${content.getContentType().getName() != "MCE"}">
<li><a href="#publish-history" id="publishHistoryTab">Publish History</a></li>
</c:if>
它不斷拋出錯誤org.apache.jasper.JasperException: /WEB-INF/jsp/content/manage.jsp(14,60) PWC6212: equal symbol expected
我也試過not eq
代替!=
什麼是not equal to
的有效語法?
嘗試「$ {not(content.getContentType()。getName()eq'MCE')}」。還要注意您使用的引號,因爲上述表達式不正確。 – kpentchev