Jsp idea to solve the problem of introducing jstl tag library
First, download the jar package
- Address: http: //archive.apache.org/dist/jakarta/taglibs/standard/binaries/
- Select jakarta-taglibs-standard-1.1.2.zip download
- unzip files
- The two jar package lib directory after extracting added to the lib directory under your own project
- Select a good copy two jar package, right -> Add as Library-> ok
Second, set the External schemas and DTDs
- 打开File->Settings->Languages & Frameworks->Schemas and DTDs
- Click External schemas and DTDs right side of the window plus
- URL输入“http://java.sun.com/jsp/jstl/core”
- tld under the File selected in the downloaded zip file extraction path / c.tld
- Click ok
Third, the configuration jsp
-
Added at the beginning of jsp
-
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
-
Use labels jstl
-
<c:if test="true"> 显示 </c:if>
-
result