When creating a maven project with idea, I encountered an invalid solution to the jsp page EL expression display. . .

When maven creates a project, the web.xml header declaration defaults to 2.3, and this default jsp closes the el expression

It is recommended to use the second one, each page of the province needs to be modified

1. Add the header of the page

<%@page isELIgnored="false"%>

2. Method 2: Change the header declaration to 3.0

The web.xml configuration header information is as follows:

  1. <?xml version="1.0" encoding="UTF-8"?>    
  2. <web-app xmlns="http://java.sun.com/xml/ns/javaee"    
  3.           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"    
  4.           xsi:schemaLocation="http://java.sun.com/xml/ns/javaee    
  5.           http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"    
  6.           version="3.0">    
  7.               
  8. </web-app> 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325451894&siteId=291194637