<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
${fn:length(list)} 可以直接取list长度
遍历map
<c:forEach items="${requestScope.map}" var="current">
${current.key} //key
${current.value} //value
</c:forEach>
格式化时间
<fmt:formatDate value="${pubdate}" pattern="yyyy-MM-dd HH:mm:ss"/>
拼接字符串
${"名称:".concat(requestScope.name)}