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.

- This is performed by using JSP tag extension API.

- A java class is written by developers which implements the tag interface and provides a tag library XML description file.

- This file specifies the tags and java classes that are used to implement the tags.

- The JSP tag extensions create new tags that can be inserted into the JavaServer Page directly.

- To write a code just extend SimpleTagSupport class and override the doTag() method, where the code can be placed to generate content for the tag.
What is Tag library descriptor (TLD)?
What is Tag library descriptor (TLD)? - The custom tags can be implemented or redistributed with tag handlers that are written in Java...
JSP page life cycle
A request from a browser is served as servlet in JSP. In this way the lifecycle and certain capabilities of JSP are determined by a servlet.
JSP directives - What are JSP directives?
JSP directives are used to set global values like class declaration, content type etc have scope for entire JSP file. ..
Post your comment