Chapter 8. Tag Libraries: Advanced Features

Topics in This Chapter

  • Manipulating tag body
  • Assigning dynamic values to tag attributes
  • Assigning complex objects as values to tag attributes
  • Creating looping tags
  • Creating expression language functions
  • Working with nested custom tags

As we mention throughout the book, the JSP page should, under normal circumstances, contain no business logic of any kind. The JSP page is there to present the output of some business logic operation, nothing more. Crowding the JSP page with anything else makes it harder to write the code for the page and introduces maintenance headaches down the line. In other words, the JSP page should contain only the presentation logic.

However, it is quite often the case that the ...

Get Core Servlets and JavaServer Pages, Volume 2: Advanced Technologies, Second Edition 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.