Categories of JSP tags - Directives, Scripting elements, Actions

Explain the categories of JSP tags - Directives, Scripting elements, Actions

Directives

The directive tags are used for simple java programming calls like importing packages, specifying the error handling pages or to handle session in a JSP page.

The directive tags are:

page: To provide information about the type of page.
include: To include another JSP.
taglib: To specify / utilizes the custom tags [ user defined tags ] in the JSP .

Scripting Elements:

A scriplet tag is used to place a valid java code. This code is placed in the jspService() method by the JSP engine.

Actions:

Actions are the core part of a JSP. An action can be printing an expression from the scriplet or even creating and persisting a bean. Scriplets, declarations, expressions, forwarding a page, handling bean properties, creating a bean for the page comprises all the actions that are part of the JSP.
How a JSP is compiled into servlets by the container
How a JSP is compiled into servlets by the container - JSPs are compiled into JavaServlets by the JSP container...
How to use Javabeans from JSP pages?
How to use Javabeans from JSP pages? - Java beans are directly supported in JSP with JSP language elements...
What is Tag extension in JSP model?
What is Tag extension in JSP model? - JSP supports the authors to add their own custom tags that perform custom actions...
Post your comment