But wait... there’s still another JSP element we haven’t seen: actions
So far, you’ve seen five different types of elements that can appear in a JSP: scriptlets, directives, declarations, Java expressions, and EL expressions.
But we haven’t seen actions. They come in two flavors: standard and...not.
Standard Action:
<jsp:include page="wickedFooter.jsp" />
Note
For now, don’t worry about what these do or how they work, just recognize an action when you see the syntax in a JSP. Later, we’ll go into the details.
Other Action:
<c:set var="rate" value="32" />
Although that’s misleading, because there are some actions that aren’t considered standard actions, but which are still part of a now-standard library. In other words, you’ll later learn that some of the non-standard (the objectives refer to them as custom) actions are... standard, but yet they still aren’t considered “standard actions”. Yes, that’s right—they’re standardized non-standard custom actions. Doesn’t that just clear it right up for you?
In a later chapter when we get to “using tags”, we’ll have a slightly richer vocabulary with which to talk about this in more detail, so relax. For now, all we care about is recognizing an action when you see it in a JSP!
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access