工作生活

jsp页面中无法使用el表达式获取值

2019-07-03  本文已影响0人  8奈文摩尔8

使用最新的Servlet3.1规范,不要使用默认的2.3dtd,修改web.xml文件
修改web.xml 里面约束

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    xmlns="http://xmlns.jcp.org/xml/ns/javaee" 
    xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd" id="WebApp_ID" version="3.1">
     <display-name>securityannotation</display-name>
     <welcome-file-list>
          <welcome-file>index.jsp</welcome-file>
     </welcome-file-list>
</web-app>

参考文章:https://blog.csdn.net/feinifi/article/details/78492249

上一篇 下一篇

猜你喜欢

热点阅读