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 ofValidationMessage
instances. Theprefix
anduri
arguments have the values of the correspondingtaglib
directive attributes or the first corresponding namespace declaration in a JSP Document. Note that in a JSP Document, the tag library can be bound to more than one prefix ...
Get JavaServer Pages, 3rd 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.