首先:
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
然后:
${fn:length(list)}
数据库连接参数设置字符集
jdbc:mysql://localhost:3306/envsche?useUnicode=true&characterEncoding=utf8
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path;
String showFile = ConfigUtils.getProperty("http.path.serkey").trim();
%>
${pageContext.request.scheme}://${pageContext.request.serverName}:
${pageContext.request.serverPort}${pageContext.request.contextPath}
${pageContext.request.requestURL}