idea introduced in jsp tag library issues jstl

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

Here Insert Picture Description

  • 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

Here Insert Picture Description

  • Click External schemas and DTDs right side of the window plus

Here Insert Picture Description

  • 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

Here Insert Picture Description

Published 54 original articles · won praise 39 · views 20000 +

Guess you like

Origin blog.csdn.net/qq_25884515/article/details/103942995