<c:if test="${'manager'.equals(menuType) }">
<li class="query_zhij"><A href="javascript:void(0);" id="create_product">创建</A></li>
<li class="query_zhij" style="display:none;"><A href="javascript:void(0);" id="update_product">修改</A></li>
<li class="query_zhij"><A href="javascript:void(0);" id="inactive_product">失效</A></li>
</c:if>
<c:if test="${'ap'.equals(menuType) }">
<li class="query_zhij"><A href="javascript:void(0);" id="approve_product">审核</A></li>
<li class="query_zhij"><A href="javascript:void(0);" id="publish_product">发布</A></li>
</c:if>
c:if标签表达式 weblogic不兼容,以上代码在tomcat下可正常显示,但是在weblogic下报错。相反,下面的代码在weblogic正常,在tomcat却报错。
不兼容的代码是:
<c:if test="${'manager'.equals(menuType) }">
<c:if test="${'manager' == menuType }">
<li class="query_zhij"><A href="javascript:void(0);" id="create_product">创建</A></li>
<li class="query_zhij" style="display:none;"><A href="javascript:void(0);" id="update_product">修改</A></li>
<li class="query_zhij"><A href="javascript:void(0);" id="inactive_product">失效</A></li>
</c:if>
<c:if test="${'ap' == menuType }">
<li class="query_zhij"><A href="javascript:void(0);" id="approve_product">审核</A></li>
<li class="query_zhij"><A href="javascript:void(0);" id="publish_product">发布</A></li>
</c:if>