Problem: The length of the list cannot be obtained through ${list.size}
in the jsp page
Solution:
1. Import the jar package: jstl-1.2.jar
2. Add it to the jsp page
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
3. The length of the list is:
${fn:length(list)}