Annotation Interface IntegerRange
Defines error message to display if a converted value of a String form field (whether on a Struts Action or model of ModelDriven Struts Action) is not within a range.
By default, messages are added to the actionErrors list but this can be overridden by messageType
:
- ERROR
- Message added to Action level error messages. Default.
- FIELD
- Message added to field error messages.
- MESSAGE
- Message added to Action level info messages.
Other parameters
- max
- Maximum value (inclusive). No default.
- min
- Minimum value (inclusive). No default.
- message
- If not empty string, text message to display. Used if
messageKey
is not set or finds no message. - messageKey
- If not empty string, message key to retrieve from Action's TextProvider. Uses
message
if no key provided or no message found. - shortCircuit
- If true and this validation fails, skips further validation. Defaults to false.
-
Required Element Summary
Required Elements -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionboolean
-
Element Details
-
max
int max -
min
int min -
message
String message- Default:
""
-
messageKey
String messageKey- Default:
""
-
messageType
Required.MessageType messageType- Default:
ERROR
-
shortCircuit
boolean shortCircuit- Default:
false
-