JSP Actions, Directives, and Implicit Objects
This section will cover a few of the common elements and objects used within JSP. Table B.1 shows the standard JSP and JSP XML tag formats of these elements. Table B.2 describes the elements. You might call these pieces the heart of JSP (with design concepts being the soul).
JSP Element | Standard JSP Format | JSP XML Tag Format |
---|---|---|
JSP comment | <%-- Your Comment --%> | N/A |
Declaration | <%! Code %> | <jsp:declaration> |
Expression | <%= a Java expression %> | <jsp:expression> |
Forward | <%jsp:forward page="relative URL" /> | same as standard JSP |
Include action | <jsp:include page="relative URL" | same as standard JSP flush="boolean"/> |
Include directive | <%@include file="RelativeURL"%> | <jsp:directive.include ... |
Get JSP™ and XML Integrating XML and Web Services in Your JSP™ Application now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.