JSP 2.0 Examples - Book SimpleTag Handler


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.


Result:
Field Value Capitalized
Title ${book.title} ${my:caps(book.title)}
Author ${book.author} ${my:caps(book.author)}
ISBN ${book.isbn} ${my:caps(book.isbn)}