13.2jstl label

       1. JSTL tag libraries Overview

              JSTL called the JavaServerPages Standard Tag Library.

              Standard specified by the JCP (Java Community Process).

              It is available to Java Web developers a common standard tag library.

             EL can cooperate and to replace the traditional embedded Java program (Scripting) directly on the page practices to improve the readability, maintainability and convenience. Get the value of EL expressions, jstl tag is written some constructions

       2. jstl introduced

              In java ee5 and above, it has been included by default jstl tag libraries, can be directly used directly.

              And then determine the label introduced by the command library name:

                     <% @ Taglib uri = "" prefix = ""%> uri = "address" prefix Acronym

       3. Development: namespace or namespace Overview

              In the introduction of the label by the taglib directive, the need to specify a namespace URN. This appears to be a URN in the address, but actually represents is a name. The reason for the written form of address of every person is to achieve the specified tag library specification can have a unique specifications, to avoid duplicate each other between any two.

              a. When using jstl tag library, tag taglib required by the introduction of the contents uri contains an address, but the address is actually a namespace (URN).

              B. the URI included in the URL and URN two portions. URN which is used as a unique name space, in order to determine the current network jstl a tag library only this, the introduction of error does not occur.

               Written in a way c.URN of: http: // domain / grade 1 / grade 2 / grade 3 ...

Beijing Xu Shuai URL URI equivalent to the equivalent of Earth China Beijing certain company because Beijing may Xu Shuai also on Mars so the scope of the URI ratio range of the URL,

       4. taglib tag library can be introduced

              core ---- The core tag library c library

              fmt ---- International Tag Library

              sql ---- sql tag library

              xml ---- xml tag library

              a. taglib instruction is introduced core library

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

After setting up the c can replace http://java.sun.com/jsp/jstl/core, the so called c which may be referred to as another example b, e. . . Take random name

Guess you like

Origin www.cnblogs.com/xuwangqi/p/11370328.html