Unzip the downloaded Jakarta-taglibs-standard-1.1.2.zip, copy all the TLD files under the TLD folder below to the Web-inf/tld directory, specify them yourself, and then add the configuration to the Web.xml:
<jsp-config> <taglib> <taglib-uri>http://java.sun.com/jstl/fmt</taglib-uri> <taglib-location>/WEB-INF/tld/fmt.tld</taglib-location> </taglib> <taglib> <tagli B-uri>http://java.sun.com/jstl/fmt-rt</taglib-uri> <taglib-location>/web-inf/tld/fmt-1_0-rt.tld </taglib-location> </taglib> <taglib> <taglib-uri>http://java.sun.com/jstl/core</ taglib-uri> <taglib-location>/WEB-INF/tld/c.tld</taglib-location> </taglib> <taglib&
Gt <taglib-uri>http://java.sun.com/jstl/core-rt</taglib-uri> <TAGLIB-LOCATION>/WEB-INF/TLD/C-1_0 -rt.tld</taglib-location> </taglib> <taglib> <taglib-uri>http://java.sun.com/jstl/sq L</taglib-uri> <taglib-location>/WEB-INF/tld/sql.tld</taglib-location> </taglib> ;taglib> <tagLib-uri>http://java.sun.com/jstl/sql-rt</taglib-uri> <taglib-location>/web-inf/tld/sql-1_0- rt.tld</taglib-location> </taglib> <taglib> <TAGLIB-URI>HTTP://JAVA.SUN.COM/JSTL/X&L t;/taglib-uri> <taglib-location>/WEB-INF/tld/x.tld</taglib-location> </taglib> <tagl Ib> <taglib-uri>http://java.sun.com/jstl/x-rt</taglib-uri> <taglib-location>/web-inf/tld/ X-1_0-rt.tld</taglib-location> </taglib> </jsp-config>
Note: Because the El and JBoss El cannot be shared under Tomcat, the El jar package needs to be under JBoss, otherwise there may be an error.