In Practice
Now that we have looked at what tag libraries are and how they work, let’s create a tag library that encapsulates some of the application logic of the ChalkTalk application.
The chalktalkweb application from Chapter 17 used two JSPs as the user interface, while using a servlet to process the login/logout functions. The logic for retrieving the course listing was embedded into the JSP. We will create several custom tags as part of the ChalkTalk tag library for retrieving and displaying the course listing and a couple of other functions. This allows us to pull most of the Java code out of the JSPs and demonstrates how to create a tag library using JBuilder.
We will create our Custom Tag library to be deployed as a set of files rather ...
Get Borland® JBuilder™ Developer’s Guide 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.