December 2003
Intermediate to advanced
764 pages
24h 58m
English
The syntax used for JSP directives and scripting elements in a regular JSP page won’t fly in a JSP Document; this syntax is not well-formed XML. You must use these XML elements with equivalent meaning instead:
<jsp:directive.page
attribute_list
/>
Corresponds to <%@ page
attribute_list
%>, in which the attribute list contains all the
attributes supported by the page directive, as
described in Appendix A.
<jsp:directive.include file="file_path" />
Corresponds to <%@ include
file="file_path"
%>.
<jsp:declaration> ... </jsp:declaration>
Corresponds to <%! ...%>.
<jsp:expression> ... </jsp:expression>
Corresponds to <%= ...
%>.
<jsp:scriptlet> ... </jsp:scriptlet>
Corresponds to <% ...
%>.
The <jsp:directive.page> element with the
contentType attribute in Example 17-10 shows you a concrete example of this syntax.
Read now
Unlock full access