Name

ValidationMessage

Synopsis

A ValidationMessage instance holds information about an error found by a tag library validator.

Synopsis

Class name:

javax.servlet.jsp.tagext.ValidationMessage

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 ValidationMessage(String id, String message)

Creates a new instance with the specified values.

Methods

public String getId( )

Returns the value of the jsp:id attribute for the element associated with this validation message or null if no jsp:id attribute is available.

public String getMessage( )

Returns the validation message text, describing the problem.

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.