Java – FN does not support JSTL

When I use ${FN: contains()}, it causes the following exception:

org.apache.taglibs.standard.lang.jstl.parser.ParseException: EL functions are not supported

How can I solve this exception?

If I need to download an updated version of JSTL jar& standard. Jar can someone send me a link?

Thank you in advance

Solution

I guess you're trying to use this expression as an attribute of some JSTL Tags:

<c:if test = "${fn:contains()}">...</c:if>

If so, make sure you imported the version 1.1 JSTL taglib (note URI – it should contain JSP):

<%@ taglib prefix = "c" uri = "http://java.sun.com/jsp/jstl/core" %>
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>