Chapter 24. Custom Tag Libraries

   

Java™ 2 Primer Plus
By Steven Haines, Steve Potts

Table of Contents
Part V:  Web Technologies


You will learn about the following in this chapter:

  • What custom tags are

  • Why you need custom tags

  • How custom tags work

  • How to use the tag body

  • How to pass parameters

The final JSP topic that we will cover in this book is custom tag libraries, hereafter it will be referred to simply as tag libraries. Tag libraries are programmer-defined XML tags that enable the JSP writer to include component functionality inside the JSP file.

In this chapter, you will learn how tag libraries and JavaBeans are similar and how they differ. You will also learn how to create custom tags, program the implementation classes, and tie the tag to the class using a taglib. In addition, you will learn how to write a JSP file that makes use of these new tags.

Following that, you will learn how to pass parameters to a tag, and how to use tags to access data stored in a database.


       
    Top
     



    Java 2 Primer Plus
    Java 2 Primer Plus
    ISBN: 0672324156
    EAN: 2147483647
    Year: 2001
    Pages: 332

    Similar book on Amazon

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net