Annotation Interface BooleanConversion
Defines a String form field (whether on a Struts Action or model of ModelDriven Struts Action) should be parsed to a recipient field of boolean or Boolean type and error message to display if this fails. The value parses to true if it starts with '1', 't' or 'y' (lowercase or uppercase), otherwise false. No error message can happen.
Other parameters
- parsedFieldName
- If not empty string, name of field to contain parsed value. Defaults to 'parsed' plus capitalised field name, such as 'parsedLimit'.
-
Optional Element Summary
Optional Elements
-
Element Details
-
parsedFieldName
String parsedFieldName- Default:
""
-