Objective 2) Custom Tags in JSP pages
9.2) Given a design goal, create the custom tag structure in a JSP page to support that goal.
This is a very small objective. Once you have informed your page of the custom tag through the use of the taglib directive a tag is used in a very similar way to any other JSP or HTML tag. Taking the taglib directive from objective 9.1
<%@ taglib tagdir="/WEB-INF/tags/taglib.tld" prefix="h" %>
The structure for the custom tag can be
<h:tagname/>
or
<h1:tagname> Body Content </h:tagname>
or
<h1:tagname myatt=”attributevalue” />
Other sources
According to Mikalai Zaikin
http://java.boot.by/wcd-guide/ch09s02.html
Last modified: Tuesday, 27 June 2006, 12:07 PM