Using a JSP Tag Library

JSP is an efficient mechanism for providing presentation content, which is mainly the look-and-feel view of the application. Putting too much logic in a JSP makes your application brittle and not easy to change. A custom tag library can be developed to provide a clean separation of presentation logic (usually handled by Java developers) and presentation content (displaying the application's data, which is usually handled by page designers). To accomplish this goal, the JSP architecture provides a set of standard taglibs (refer to the “Standard JSP Actions (Taglibs)” section earlier). In this section, you'll learn how to develop your own taglib to customize your application.

A taglib, or tag handler, is a Java class that ...

Get Sams Teach Yourself EJB in 21 Days 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.