JSP Tutorials - Herong's Tutorial Examples - v5.11, by Herong Yang
What Is Custom Tag
This section describes what is JSP custom tag. A custom tag can be define by the user through the JSP tag extension facility using a Java tag class.
What Is Custom Tag? Custom Tag is an action tag defined by the user through the JSP tag extension facility. It can be used to move JSP scripting code and information into a Java tag class, and invoke it by an action tag that is linked to that class. There are two main advantages of using custom tags:
I am sure that the functionalities provided by custom tags can also be archived by using JavaBean and scripting elements together. But tags seem to be simpler to use for many unsophisticated JSP page authors.
Table of Contents
JSP (JavaServer Pages) Overview
Tomcat Installation on Windows Systems
Syntax of JSP Pages and JSP Documents
JavaBean Objects and "useBean" Action Elements
Managing HTTP Response Header Lines
Non-ASCII Characters Support in JSP Pages
Overview of JSTL (JSP Standard Tag Libraries)
Creating and Using Custom Tags
My First Custom Tag - hy:hello
Multiple Tags Working Together
Using Tomcat on CentOS Systems
Connecting to SQL Server from Servlet