JSP.7.3 Directives


A directive in a JSP page is of the form:

 <%@ directive { attr="value" }* %> 

Most directives get translated into an element of the form:

 <jsp:directive.directive { attr="value" }* /> 

JSP.7.3.1 The page Directive

In the XML document corresponding to JSP pages, the page directive is represented using the syntax:

 <jsp:directive.page  page_directive_attr_list  /> 

See Section JSP.2.7.1 for description of page_directive_attr_list.

Example

The directive:

 <%@ page info="my latest JSP Example V1.1" %> 

corresponds to the XML element:

 <jsp:directive.page info="my latest JSP Example V1.1" /> 

JSP.7.3.2 The include Directive

In the XML document corresponding to JSP pages, the include directive is represented using the syntax:

 <jsp:directive.include file="  relativeURLspec  " flush="truefalse" /> 
Examples

Below are two examples, one in JSP syntax, the other using XML syntax:

 <%@ include file="copyright.hmtl" %>  <jsp:directive.include file="htmldocs/logo.html" /> 

JSP.7.3.3 The taglib Directive

In the XML document corresponding to JSP pages, the taglib directive is represented as an xmlns: attribute within the root element of the JSP page document.



Java 2 Platform, Enterprise Edition. Platform and Component Specifications
Java 2 Platform, Enterprise Edition: Platform and Component Specifications
ISBN: 0201704560
EAN: 2147483647
Year: 2000
Pages: 399

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net