jsp页面${var}变量不显示问题

确定依赖包:

<!-- https://mvnrepository.com/artifact/javax.servlet/jstl -->
    <dependency>
      <groupId>javax.servlet</groupId>
      <artifactId>jstl</artifactId>
      <version>1.2</version>
    </dependency>

确定标记:

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

方案一:

    修改.jsp页面加上下面的标签

<%@page isELIgnored="false" %>

方案二:

   修改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"
     version="3.0">
//...
</web-app>