JSP页面JSTL不能显示

来源:互联网 发布:网络信息泄露案例 编辑:程序博客网 时间:2024/04/28 22:40

问题:

    JSTL包导入了,但是JSP页面使用EL标签没有显示内容

    

原因:

    MAVEN项目生成的web.xml有问题

解决:

    参考:https://stackoverflow.com/questions/24648545/cant-use-jstl-on-a-simple-example

    修改web.xml

<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"         xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"         version="3.1">    rest of the TAGs</web-app>

原创粉丝点击