问题:
According to TLD or attribute directive in tag file, attribute value does not accept any express。
解决方案:
检查你的web.xml的版本
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
id="WebApp_ID" version="3.0">
在jsp页面中,引入
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c"%> ------>3.0版本不可用
在3.0版本没有办法使用,需要又改为下面的引入即可解决
<%@ taglib uri=http://java.sun.com/jstl/core_rt prefix="c"%>