Chapter 7. Tag Libraries: The Basics
Topics in This Chapter
- Identifying tag library components
- Creating simple custom tags
- Handling attributes in custom tags
- Outputting tag bodies
- Creating JSP-based custom tags with tag files
As discussed in Volume 1 (Section 11.2) of Core Servlets and JavaServer Pages, you have many options when it comes to generating dynamic content inside the JSP page. These options are as follows:
- Scripting elements calling servlet code directly
- Scripting elements calling servlet code indirectly (by means of utility classes)
- Beans
- Servlet/JSP combo (MVC)
- MVC with JSP expression language
- Custom tags
The options at the top of the list are much simpler to use and are just as legitimate as the options at the bottom of the ...
Get Core Servlets and JavaServer Pages, Volume 2: Advanced Technologies, Second Edition 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.