Defines standard JSP elements and namespace attributes of tag libraries.
None. However, see Taglib Directive.
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" [ xmlns:taglibPrefix="URI" ]+ ... version="1.2 | 2.0"> JSP Page </jsp:root>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:public="http://www.jspcentral.com/tags" version="2.0"> <public:loop> ... </public:loop> </jsp:root>
A JSP page in XML syntax can have jsp:root
as its root element, but it is not required. You can instead specify your own tag as a root element. Tag libraries used within the JSP page can be represented in the root element through xmlns
attributes. (Again, you can use the xmlns
attributes in other tags besides the jsp:root
element. The xmlns:jsp
and version
attributes are mandatory.
xmlns:jsp="http://java.sun.com/JSP/Page"
version="1.2 | 2.0"
xmlns:taglibPrefix="
URI"
public
in <public:loop>
. Empty prefixes are illegal. If you are developing or using custom tags, you cannot use the tag prefixes jsp
, jspx
, java
, javax
, servlet
, sun
, and sunw
, as they are reserved by Sun Microsystems.
urn:jsptld:
path.
web.xml
extended using the implicit maps in the packaged tag libraries. If URI is of the form urn:jsptld:
path, path is interpreted relative to the root of the web application and should resolve to a TLD file directly, or to a JAR file that has a TLD file at location META-INF/taglib.tld
.