Error using JSTL tag: According to TLD or attributes Directive in tag file, attribute value does not accept any expressions

Source: Internet
Author: User
Tags tld

Using JSTL tag does not require the following code to be added to the web.xml:

<jsp-config>
<taglib>
<taglib-uri>http://java.sun.com/jsp/jstl/core</taglib-uri>
<taglib-location>/WEB-INF/tld/c.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>http://java.sun.com/jsp/jstl/fmt</taglib-uri>
<taglib-location>/WEB-INF/tld/fmt.tld</taglib-location>
</taglib>
</jsp-config>

And just put Jstl.jar and Stardard.jar into the Web-inf/lib directory to use

For JSTL core tag, if you use the following declaration:

<%@ taglib prefix= "C" uri= "Http://java.sun.com/jstl/core"%>

The return is wrong:

According to TLD or attributes Directive in tag file, attribute value does not accept any expressions

The solution is to change the declaration to

<%@ taglib prefix= "C" uri= "Http://java.sun.com/jstl/core_rt"%>

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.