6.15 CUSTOM TAG LIBRARY

A tag in the context of JSP signifies a lot of abstraction – a piece of recurring function that works behind the scenes, an architecture that promotes separation of concerns. When standard tags may not suit every occasion, there are situations where this model is put to use for customized needs. This is where custom tag libraries are positioned.

Designers or Developers can create their tags to be used in JSP. Consider for instance a requirement where a randomized thought-for-the-day is to be shown.

 

Index.jsp-TFD

 

Fig. 6.16 Index.jsp-TFD

 

Figure 6.10 shows the main display page that will show the TFD (Thought for the day). Refreshing ...

Get Web Technology: Theory and Practice 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.