Validator

Implemented in class xdoclet.modules.apache.struts.StrutsValidatorTagsHandler.

Block Tags:

forAllForms (block template)

Iterates over all Struts Form beans and evaluates the body of the tag for each class.

forAllFieldArgs (block template)

Iterates over all arguments for the current field.

ifArgIsResource (block template)

Evaluates body if current argument is a resource key.

ifArgIsValue (block template)

Evaluates the body if the current argument is an inline value rather than a resource key.

ifArgIsForType (block template)

Evaluates the body if the current argument is a validator-specific argument.

ifNoArg0 (block template)

Evaluates the body if there is no arg0 specified.

ifFormHasFields (block template)

Evaluates the body if form has fields requiring validation.

ifFieldIsIndexed (block template)

Evaluates the body if the current field has an indexed component.

forAllFields (block template)

Iterates the body for each field of the current form requiring validation.

setMatchValue (block template)

Sets the value of match variable.

value The new value for matchPattern.

Content templates:

formName (content template)

Gets the "name" attribute for the <form> element in the xml descriptor. This should be the "path" form attribute if this is a ValidatorActiorForm or the "name" attribute otherwise.

argIndex (content template)

Current argument index number (0 to 3).

argName (content template)

Current argument name - only valid if argument is for a specific validator type.

argValue (content template)

Current argument value, which is either an inline value or resource key.

fieldName (content template)

Returns the current field's name, local to the indexed property if there is one.

indexedListProperty (content template)

Returns the current field's indexedListProperty attribute, if any.

validatorList (content template)

Returns a comma-separated list of the specified validator types.

matchValue (content template)

Returns the value of match variable. Match variable serves as a variable for templates, you set it somewhere in template and look it up somewhere else in template.

currentToken (content template)

Returns current token inside forAllClassTagTokens.

skipToken (content template)

Skips current token. Returns empty string.