The Struts tag libraries are nothing more than a specialized set of JSP custom tags. JSP custom tags are a fundamental part of JSP development in general. Some of the advantages of using tag libraries are
JSP custom tags are created by writing Java code that implements the Tag or BodyTag interface (defined in the package javax.servlet.jsp. tagext ). JSP custom tag development involves three basic steps:
Note For a good, basic introduction to JSP custom tag development, you can refer to Sams Publishing's JavaServer Pages 2.0 Unleashed (ISBN: 0-672-32438-5). In addition, Sun Microsystems has published a short tutorial at http://java.sun.com/products/jsp/tutorial/TagLibrariesTOC.html. |