The js| Tutorial JSP page uses a tag library and prefix that you can define using taglib directive from the definition tag.
Its syntax:
<%@ taglib uri= "uritotaglibrary" prefix= "TagPrefix"%
Example:
<%@ taglib uri= "http://www.jspcentral.com/tags" prefix= "public"%>
.
Describe:
The <%@ taglib%> Directive (Directive) allows you to use custom labels, name the tag libraries, and specify their prefixes.
The term custom tag does not just refer to the label, but also to the element. Because JSP files can be translated into XML, it is important to understand the relationship between tags and elements. The label is just a flag (markup) and is part of the JSP element. A JSP element is a JSP syntax unit that is equivalent in XML to a start tag and an end tag. An element can contain other text, labels, or elements. For example, a jsp:plugin element always ends with the label beginning and one , and can also contain a element and a element.
Before you use a custom label in a JSP file, you must use a <%@ taglib%> indication. You can use multiple <%@ taglib%> instructions in a JSP file, but each prefix defined above must be unique.
Attribute Detailed:
Property
|
Usage
|
>
Uri = "Uritotaglibrary"
|
Uniform Resource definition (uri--the uniform Resource Identifier) A URI can be in the following form: A Uniform resource location defined by RFC2396 (url--the uniform Resource Locator) can be obtained at this site: A Uniform Resource name (urn--the uniform Resource name) defined by RFC2396. C |