在el表达式中引用变量进行比较
<!--JSP中的Java代码:-->
<%
int
super1=ConstantUtil.Super_User;
request.setAttribute(
"superAttr", super1);
%>
<!--引用el表达式的C标签-->
<c:if
test=
"${qx==superAttr}"
><a
href="#">
超级管理员
</a></
c:if>
注解:EL 表达式中的东西是 request 等这些地方中的 key 字符串。所以先把变量放到request中。