final public class ConnectorForm extends ActionForm (Code)
Form bean for the connector page.
author: Michel-Ange ANTON author: Adriana Danes author: - update to Tomact 5.0 author: - update to Tomact 5.5 (04/2005)
numberCheck(ActionErrors pErrors, String field, String numText, boolean rangeCheck, int min, int max) Helper method to check that it is a required number and
is a valid integer within the given range.
validate(ActionMapping mapping, HttpServletRequest request) Validate the properties that have been set from this HTTP request,
and return an ActionErrors object that encapsulates any
validation errors that have been found.
public void numberCheck(ActionErrors pErrors, String field, String numText, boolean rangeCheck, int min, int max)(Code)
Helper method to check that it is a required number and
is a valid integer within the given range. (min, max).
Parameters: field - The field name in the form for which this error occured. Parameters: numText - The string representation of the number. Parameters: rangeCheck - Boolean value set to true of reange check should be performed. Parameters: min - The lower limit of the range Parameters: max - The upper limit of the range Parameters: pErrors - the ActionErrors
setAcceptCountText
public void setAcceptCountText(String acceptCountText)(Code)
Set the acceptCountText.
Parameters: acceptCountText - the acceptCount text
Validate the properties that have been set from this HTTP request,
and return an ActionErrors object that encapsulates any
validation errors that have been found. If no errors are found, return
null or an ActionErrors object with no
recorded error messages.
Parameters: mapping - The mapping used to select this instance Parameters: request - The servlet request we are processing the ActionErrors