1、封装类和基本数据类型定义的值,值一样,类型不一样
Integer bookId=5;
int bid=5;
bookId==bid 是false
2、用jsp:include时路径问题
<jsp:include page="/WEB-INF/pages/admin/footer.jsp"></jsp:include>
3、在jsp页面设置页面内跳转的锚点
原来的写法:<li><a href="#" title="1">所有分类</a></li>
在jsp页面中的写法:<li><a href="${pageContext.request.contextPath }/system/#" title="1">所有分类</a></li>
加上全名的路径
4、if-else在jsp中的写法
<c:choose>
<c:when test="${flag}">
*
</c:when>
<c:otherwise>
*
</c:otherwise>
</c:choose>
5、利用foreach遍历map:
<c:forEach items="${map}" var="m">
${m.key}
${m.value}
</c:forEach>