Chapter 3. Actions and Directives
Topics in this Chapter:
Resource and JavaBean Actions
JSP Directives
Handling Errors
Action Element Syntax
The Action element is very different from the Scripting elements. There is only one syntax for the Action element, as it conforms to the XML standard.
Syntax: <jsp:action_name />
Action elements are basically predefined functions. The JSP specification comes with several built-in actions, and with JSP specification 1.1 custom tags can be created through the jsp:taglib
directive. An Action element can modify the out
stream, as well as create and use objects. Another interesting feature of the Action element is that the request
object of the JSP page can directly influence its actions.
Following the XML standard, ...
Get Core JSP 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.