Chapter 11. Custom Tags

Topics in this Chapter:

  • Custom Tag Basics

  • The Custom Tag API

  • Creating a new Custom Tag

  • Creating Composite Tags

When it comes to design strategy there have been two different themes in this book: first, try to write code in a component-based design; and second, try and separate presentation logic from business logic. One method of doing this is the JavaBean, which allows the JSP page to serve as a front end for presentation while the JavaBean itself is used for business logic.

Other examples have made use of including JSP files using the include action (<jsp:include... />) and include directive ( <%@ include... %>). Each of these methods works in different ways, but both present significant problems for scalability and portability. ...

Get Core JSP 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.