[jsp]代码库
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<!-- 通过taglib 导入 核心 标签库 -->
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<%
int m=10;
request.setAttribute("m", m);
%>
<c:if test="${m>5 }">
m 是大于 5 的 哦 ...
</c:if>
<c:if test="${m<=5 }">
m 是小于 5 的 哦 ...
</c:if>
</body>
</html>