xdoclet.modules.apache.struts

Class StrutsDynaFormValidatorTagsHandler


public class StrutsDynaFormValidatorTagsHandler
extends StrutsValidatorTagsHandler

Struts dynamic form validator tag handler.
Version:
$Revision: 1.2 $
Author:
Nick Heudecker (nick at systemmobile dot com)
xdoclet.taghandler
namespace = "DFValidator"
created
September 27, 2004

Method Summary

void
forAllFields(String template, Properties attributes)
Iterates the body for each field of the current form requiring validation.
void
forAllForms(String template, Properties attributes)
Iterates over all POJOs with dynaform tags and evaluates the body of the tag for each class.
String
formName(Properties attributes)
Gets the "name" attribute for the <form> element in the xml descriptor.

Method Details

forAllFields

public void forAllFields(String template,
                         Properties attributes)
            throws xdoclet.XDocletException
Iterates the body for each field of the current form requiring validation.
Parameters:
template - The body of the block tag
attributes - The attributes of the template tag
Throws:
xdoclet.XDocletException -
doc.tag
type = "block"

forAllForms

public void forAllForms(String template,
                        Properties attributes)
            throws xdoclet.XDocletException
Iterates over all POJOs with dynaform tags and evaluates the body of the tag for each class.
Parameters:
template - The body of the block tag
attributes - The attributes of the template tag
Throws:
xdoclet.XDocletException -
doc.tag
type = "block"

formName

public String formName(Properties attributes)
            throws xdoclet.XDocletException
Gets the "name" attribute for the <form> element in the xml descriptor.
Parameters:
attributes - The content tag attributes.
Returns:
form name
Throws:
xdoclet.XDocletException - if anything goes awry.
doc.tag
type = "content"