1. Preface:
It is important to write programs so that our CODE can be reused, scalable, and flexible.
Jsp is based on Object-Oriented JAVA technology. We can use design patterns to make it have these features.
The close combination of jsp and xml makes us have another option in coding. Writing excellent code is no longer a distant fairy tale.
This section describes how to use custom tags or other predefined tags for the application during programming and deploy TagLib.
TAG to be applied,
------------- Create a tld file.
TLD (TLD: Tag Library Descriptor) file, standard XML format Tag definition file.
Define tags and their attributes and process files.
------------- Tag Handler (TAG processor .)
It is actually a JAVA class file used to process tags. Each tag in the tld file must be
Specifies which class file is used to process the TAG.
------------- Use tags in JSP
You can use jsp commands.
When creating TAGLIB and writing tags to process files, it may be a bit complicated. However, when we need to reuse or add features
We will find out what great things we have done! ^ _-(A little exaggerated)
The next page begins with a detailed explanation.