Use jstl in J2EE to report the http://java.sun.com/jsp/jstl/core cannot be resolved in either web. xml or the jar Error

Source: Internet
Author: User

I. Problems Found

Run the JSP page referenced by jstl

Error Reporting http://java.sun.com/jsp/jstl/core cannot be resolved in either web. xml or the jar

Ii. Cause Analysis

Possible 1: version issues

Jstl1.0 declaration is: <% @ taglib prefix = "C" uri = "http://java.sun.com/jstl/core" %>
Jstl1.1 statement is: <% @ taglib prefix = "C" uri = http://java.sun.com/jsp/jstl/core %>

Possible 2: No standard. Jar

Javaee5 comes with jstl1.2 version, the page is all with this method.

However, after javaee5, only jstl. jar is provided. Without Standard. jar, the TLD file is also packaged into jar. There is no way to configure JSP-config in the web. xml file.

Try to add standard. jar.


Possible three: Tomcat released application WEB-INF/lib without jstl. Jar

The jstl. jar package exists in the IDE project, but it does not exist in the application WEB-INF/lib released by Tomcat. This is the problem of tool release project. Copy a jar package and solve the problem in the past.


Original post address:Http://blog.csdn.net/lzz313/article/details/7554736

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.