14.4. Actions
To begin with, there are few JSP tags with XML-compatible syntax. These most closely resemble ColdFusion tags and take this form:
<jsp:tagname attribute="value" />
A commonly used JSP tag that takes this form has a direct counterpart in ColdFusion's <cfinclude> tag: <jsp:include/>, which looks like this:
<jsp:include page="header.jsp" />
Calling this tag includes the content of header.jsp directly in the calling page.
You notice a couple of things here. First, there is a colon separating “jsp” and the name of the tag. This syntax allows developers to create coherent names for their own custom tags. For instance, you might write a custom tag to handle the checkout process for a user's shopping cart. It might look like this:
Get Java™ for ColdFusion® Developers 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.