Intellij IDEA 中jstl失效问题

417 阅读1分钟

有两种解决方式:

1,web-xml中使用web-app_2_3需要在每个jsp中添加

isELIgnored="false"

方可生效果

2.在jsp2.0中默认的isELIgnored就是false,需要调整webapp为2.4及以上,下面提供2.4写法

<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"         
                       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"         
                       xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee        
                       http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">