%@ taglib prefix="my" uri="/WEB-INF/TagLib/jsp2-example-taglib.tld" %>
Illustrates a semi-realistic use of SimpleTag and the Expression Language. First, a <my:findBook> tag is invoked to populate the page context with a BookBean. Then, the books fields are printed in all caps.
Field | Value | Capitalized |
Title | ${book.title} | ${my:caps(book.title)} |
Author | ${book.author} | ${my:caps(book.author)} |
ISBN | ${book.isbn} | ${my:caps(book.isbn)} |