jsp页面如下:
<%@page contentType="text/html; charset=gbk"%>
<%@taglib uri="http://java.sun.com/jstl/core" prefix="c"%>
<html>
<head>
<title></title>
</head>
<%
Integer testHBM = new Integer(1);
pageContext.setAttribute("testHBM",new Integer(10)); //1
request.setAttribute("testHBM",new Integer(11)); //2
application.setAttribute("testHBM",new Integer(12)); //3
%>
<body>
<c:out value="start-----------"/><br/>
<c:if test='${testHBM == 12}'>
<c:out value="${testHBM}"/><br/>
</c:if>
<c:out value="end-------------"/>
</body>
</html>
******************************************************************
<c:if test='${testHBM == 12}'>,这个标签,如果不是写成requestScope.testHBM==12时,
会先查page范围,然后request范围,最后是application.