The EL expression cannot be used in a MAVEN-created project

Source: Internet
Author: User

The EL expression cannot be used in Maven creation projects silently looking at the problem under the rain

Today, when I was learning MyBatis with the MU class network, I encountered an issue in which you could not use EL expressions in Maven creation projects.

Workaround

1. Add maven dependencies mainly Standard.jar and Jstl.jar

<!--https://mvnrepository.com/artifact/taglibs/standard --<dependency> <groupId>taglibs</groupId> <artifactid>standard</artifactid&            Gt <version>1.1. 2</version> </dependency> <!--https://mvnrepository.com/artifact/javax.servlet/jstl --<dependency> <groupId>javax.servlet</groupId> <artifactid>jstl</artifacti D> <version>1.2</version> </dependency>

2.web.xml problems
Must be in the following format

<?xml version= "1.0" encoding= "UTF-8"?><web-app xmlns= "http://java.sun.com/xml/ns/javaee" xmlns:xsi=" Http://www.w3.org/2001/XMLSchema-instance "xsi:schemalocation=" http://java.sun.com/xml/ns/ Java ee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd "version=" 3.0">                </Web-app>
References

http://blog.csdn.net/yuguiyang1990/article/details/10419759
http://www.programgo.com/article/41062042529/

Welcome to the Xiaoshujiang editor , where you can change the contents of a new article by modifying the template in the settings .

The EL expression cannot be used in a MAVEN-created project

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.