Chapter 9. Using Custom JSP Tags

Welcome to Day 9! Today you're going to start learning how to create your own custom JSP tags. So far, you've used the built-in tags in JSP, like <% ... %> or <jsp:getProperty>. Today, you'll start going beyond that and begin creating your own JSP tags—and connecting Java code to those tags. Here are today's topics:

  • Understanding and installing custom JSP tags

  • Using the available Jakarta tag libraries

  • Using the Request tag library in depth

  • Creating a simple tag

  • Creating tag descriptor files

  • Installing tag libraries using web.xml

  • Writing Java code for a simple tag

  • Using the simple tag you've created

You'll see what custom tag libraries are available already, and how to put one of them—the Jakarta Request tag library—to work. ...

Get Sams Teach Yourself JavaServer Pages™ 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.