taglib directive in jsp:

When using a third-party tag library in a JSP page, you need to use the taglib instruction to "import the package". E.g:

<%@ taglibprefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

Among them, prefix represents the prefix of the label, and the name can be arbitrarily started. The uri is defined by a third party tag library, so you need to know the uri defined by the third party.

In the following we will explain the use of the taglib directive when we explain the JSTL tag library.


    <%@ taglib uri="http://java.sun.com/jstl/core"  prefix="c"%>
	<c:out value="renliang"></c:out>


Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325931912&siteId=291194637