Solve the problem of using the tag <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> to report an error
- ! ! ! First you need to download the Tomcat package! ! !
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
-
In a recent JavaWeb experiment, when using eclipse, an error was reported when trying to use taglib . For the Tomcat project, when using the taglib tag, there are two missing packages on the Internet, but in fact, after downloading Tomcat, the package itself covers these two, but it is To add it to the project, just like eclipse needs to build a database jar package in the project to connect to the database , the same operation.
-
In order to use taglib to first find the Tomcat path downloaded at that time, my package is in this path:
-
Copy these two packages, right-click Web Content -> WEB-INF->lib in the eclipse project and select paste:
-
Then right-click the project name , select Build Path->Configure Build Path , the following box appears and select Add External JARs... on the right :
-
Then find the location where these two packages exist, select all and click OK, so that it will be added, don't forget to click Apply and close :
-
After all this is done, you will see your newly added impl and spec jar packages under Referenced Libraries in your project :
this solves the above error reporting problem and can be used normally!