maven项目jsp无法识别jstl的解决办法

EL表达式无效是因为maven项目的jsp不识别jstl,只要在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"

 即可,未加之前结果:

在引入命名空间之后的结果:

 

posted @ 2018-09-19 07:04  何仙伟  阅读(1194)  评论(0编辑  收藏  举报