Contents | Prev | Next


<jsp:root>

Defines standard JSP elements and namespace attributes of tag libraries.

JSP Syntax

None. However, see Taglib Directive.

XML Syntax

<jsp:root	
   xmlns:jsp="http://java.sun.com/JSP/Page"	
   [ xmlns:taglibPrefix="URI" ]+ ...	
   version="1.2">	
      JSP Page	
</jsp:root>

Example

<jsp:root 	
   xmlns:jsp="http://java.sun.com/JSP/Page"	
   xmlns:public="http://www.jspcentral.com/tags" 	
   version="1.2">	
   <public:loop>	
      ...	
   </public:loop>	
</jsp:root>

Description

A JSP page in XML syntax has jsp:root as its root element. Tag libraries used within the JSP page are represented in the root element through xmlns attributes. The xmlns:jsp and version attributes are mandatory.

Attributes

See Also



Contents | Prev | Next

Copyright © 2002, Sun Microsystems, Inc. All rights reserved.