Sun Microsystems Logo
Products and Services
 
Support and Training
 
 

Training
Web-based Courses
»   How To Enroll
»   Java Technology
»   Sun Java Studio, Solaris OS, and Perl Development
»   Sun Java Enterprise System
»   Sun Java Desktop System
»   Web Services, XML, and Web Publishing
»   Wireless and Telecommunications
»   StarOffice Software
»   Solaris Operating Environment
»   Network Management
»   N1 Grid
»   Security
»   Server and High Availability
»   Storage
»   Knowledge Management
»   Auto-ID
 
 

Developing Custom JSP Tag Libraries

 Course Description
    Course Outline/Details

The Developing Custom JSP Tag Libraries course describes how to design and develop custom tag libraries. Custom tags are used to encapsulate complex dynamic actions in JSP pages. Students will see how to develop tag handler classes and configure these classes into a tag library descriptor file.

  • Course length: 2 hours


  • Course ID:
    WJ-3144-90
    Subscription Duration:
    90 days
    Price:
    $US  60.00
    How to Enroll
       
     Languages Offered Back To Top

    This course is currently available in English only.

     
     Who Can Benefit Back To Top

    Students who can benefit from this course are Web Component Developers.

     
     Prerequisites Back To Top

    To succeed fully in this course, students should be able to:

  • Create and use Java technology classes, packages, interfaces, exceptions, and collections
  • Compile and execute a Java technology program
  • Read and use an object-oriented API
  • Integrate with existing Java technology code (for example, when code developed by another team is needed)
  • Model the "what" and "how" of a software system using some modeling language, such as Unified Modelling Language (UML)
  • Understand the component/container software framework
  • Understand what an n-tiered architecture consists of (presentation logic, business logic, data store)
  • Understand why separation of presentation logic and business logic is a good idea
  •  
     Skills Gained Back To Top

    Upon completion of this course, you should be able to:
  • Understand how to design and develop a custom tag library
  • Create a tag handler class for an empty custom tag by implementing the doStartTag method
  • Configure the tag library descriptor file to declare a custom tag, the tag handler class, and the attributes of the custom tag
  • Develop a tag handler class that accesses the custom tag attributes
  • Develop a tag handler class that conditionally includes the body of the custom tag
  • Understand when to use the SKIP_BODY and EVAL_BODY_INCLUDE values in the doStartTag method
  • Develop a tag handler class that iteratively includes the body of the custom tag
  • Understand when to use the SKIP_BODY and EVAL_BODY_AGAIN values in the doAfterBody method
  • Develop a tag handler class that accesses the JSP page attributes
  •  
     Related Courses Back To Top

  • Before: WJB-250: The Java Programming Language Bundle
  •  
         Course Content Back To Top



    Module 1: Developing a Simple Custom Tag

  • Describe the structure and execution of a custom tag in a JSP page
  • Develop the tag handler class
  • Write the tag library description for this tag in the descriptor file


  • Module 2: Developing Advanced Custom Tags
  • Develop a custom tag to include the body
  • Develop a custom tag to conditionalize the body
  • Develop a custom tag to iterate over the body
  • Develop a custom tag to manipulate the body
  •