JSP CUSTOM TAG LIBRARIES
To perform client-side validation on user input, set the clientvalidate attribute of this tag to "onsubmit" or "onblur", set the clientvalidate attribute of the form tag to "true", and include one of the following validation tags to specify the type of validation to perform:
validatecc, validatedate, validatelength, validatepattern, validaterange, validaterequired, validatesummary, validatewith. These tags validate user input by either requiring a field to be filled or testing that an entered value conforms to a specified format, length, pattern or falls within a specified range. Be sure to set the name attribute of the validation tag equal to the name attribute of this tag to identify which Web control input to validate.
Note If you do not include one of these validation tags, no validation is performed.
Contexts
Valid in:
clientvalidate
HTML Attributes
Domino supports the following HTML tag attributes:
type
class
dir
disabled
id
lang
language
maxlength
onafterupdate
onbeforeupdate
onblur
onchange
onclick
ondblclick
ondragstart
onfocus
onhelp
onkeydown
onkeypress
onkeyup
onmousedown
onmousemove
onmouseout
onmouseover
onmouseup
onselect
onselectstart
readonly
size
src
style
tabindex
title
(type)
If you want to validate the data supplied by a user in an input control and plan to use a localized messages file as the source for that error message, you must add an entry for that input control in the properties file. An example of the format you can use for the entry is as follows:
name
where name equals the name attribute of the input tag the message refers to. The message you add to the properties file serves as the default message if no message or msgkey attribute value is supplied with the validation tag.
See Creating localized message files and Handling errors for more details.
Note You cannot validate the checkbox and radio tags. If your JSP requires that a value be selected for a radio or checkbox control, be sure to supply a default value for the tag.
See Also