Problem with URI error when Project JSP label definition (product traceability system) 2016-7-29

Source: Internet
Author: User

Ha ha. It is obvious that I have exposed the white, the following is my project in the problems encountered, and solutions, there is a framework for the integration of the configuration we use is ssm<spring SPRINGMVC mybatis>

The first question is here.

1). Using JSTL Core RT Library

The JSTL Core Library has two taglib pseudo directives, in which the RT library relies on the JSP's traditional request-time attribute value, rather than relying on El to implement it (called the El Library. JSP2.0 will support EL)

JSP in the use of <%@ taglib uri=http://java.sun.com/jstl/core prefix= "C"%> in the 2.3 version can be, in 2.4 is not, this is incompatible version, The version of the servlet will be introduced later.

As long as the
Copy code code as follows: <%@ taglib uri= "Http://java.sun.com/jstl/core" prefix= "C"%>

To
Copy code code as follows: <%@ taglib uri=http://java.sun.com/jstl/core_rt prefix= "C"%>

2): If you want to use jstl1.1 (recommended) Then follow the changes, very simple.

Jstl There are 1.0 and 1.1 differences in the problem, with El Recommendations need to be in the 1.1 version,
Using jstl1.1 you only need to add
1.0 is for
Copy code code as follows: <%@ taglib uri= "Http://java.sun.com/jstl/core" prefix= "C"%>
Into:
Copy code code as follows: <%@ taglib uri= "Http://java.sun.com/jsp/jstl/core" prefix= "C"%>

Related Article

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.