Using JSP Tag Libraries

Even with all the separation given by the MVC pattern, you still can find JSP pages that contain a great deal of logic. It would be nice to be able to encapsulate the more common behavior into a library and then reuse that library throughout your pages. This is one of the main goals of JSP custom tag libraries. Although JSP tag libraries have been around for a while, not many JSP applications have taken full advantage of them. Most of the time, it’s due to not really understanding the benefit that they can add to the application.

One of the nice things about JSP tag libraries is that many people are building tag libraries for things that most Web applications need to do, and they are sharing these free with everyone. ...

Get Special Edition Using Enterprise JavaBeans™ 2.0 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.