JSP Getting Started TAGLIB DIRECTIV

xiaoxiao2021-03-06  15

Use the Taglib Directive from the JSP page to define a tag library and prefix. Otimate: <% @ Taglib URI = "Uritotaglibrary" prefix = "tagprefix"%> example: <% @ Taglib URI = "http://www.jspcentral.com/tags" prefix = "public"%> . Description: <% @ taglib%> Indicator (Directive) Allows you to use a custom label, named the label library and specify their prefix. The term Custom TAG is more than just an indicator, but also means an element. Because the JSP file can be converted to XML, it is important to understand the connection between labels and elements. The label is just a flag (Markup), which is part of the JSP element. The JSP element is a JSP syntax unit, which is a start tag and end label in XML. Elements can contain other texts, labels, or elements. For example, a JSP: Plugin element always starts with tag, and it can also contain a element and element. You must use a <% @ taglib%> instruction before you use a custom label in a JSP file. You can use multiple <% @ taglib%> instructions in a JSP file, but the prefix defined in each previously defined must be unique. Detailed attributes:

URI = "URITOTAGLIBRARY" Unified Resource Definition (URI - The Uniform Resource Identifier) ​​A URI can be the following form: The Uniform Resource LocatoreSource Name). c

转载请注明原文地址:https://www.9cbs.com/read-45891.html

New Post(0)