Chapter 17 - Developing “Simple” custom tag libraries

This application contains sample JSP pages that test the different custom simple tags as shown in chapter 17.

Link to JSP page Custom tag used Handler class explained in
SimpleTagExample.jsp <example:message> Section 17.1
math.jsp <math:functions> Section 17.2.1, Listing 17.4
example.jsp <ex:example> Section 17.3.1, Listing 17.9
invokeaction.jsp <inv.invokeaction> Section 17.3.4, Listing 17.11
bodyaction.jsp <bod:bodyaction> Section 17.3.4, Listing 17.13

Important

In order to use the JSTL, you need to copy jstl.jar and standard.jar from
C:\jakarta-tomcat-5.0.25\webapps\jsp-examples\WEB-INF\lib
and add them to a lib directory within WEB-INF.

All tag files must be placed in or under a tags directory in WEB-INF

After you see the results of executing the above JSP pages, take a look at the JSP files, the Java source files of these tag handler classes, and the TLD file. Modify them, try out different samples and practice the various concepts explained in this chapter.