Name

TagLibraryValidator

Synopsis

A subclass of the TagLibraryValidator class can be declared as the validator for a tag library. The container invokes it at translation time, providing it with the XML View of the page through a PageData instance.

Synopsis

Class name:

javax.servlet.jsp.tagext.TagLibraryValidator

Extends:

None

Implements:

None

Implemented by:

Internal container-dependent class. Most containers use the reference implementation of the class (developed in the Apache Jakarta project).

Constructor

public TagLibraryValidator( )

Creates a new instance.

Methods

public java.util.Map getInitParameters( )

Returns a Map containing all initialization parameters declared in the TLD for the validator, with the parameter names as keys.

public void release( )

Releases any resources kept as instance data.

public void setInitParameters(java.util.Map)

Sets the Map containing all initialization parameters declared in the TLD for the validator, with the parameter names as keys.

public ValidationMessage[] validate(String prefix, String uri, PageData page)

Validates the specified page data, and returns null or an empty array if the page is valid. If errors are found, descriptions of the errors are returned as an array of ValidationMessage instances. The prefix and uri arguments have the values of the corresponding taglib directive attributes.

Get JavaServer Pages, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.