Name
= "number1", message = "The first part of the number must be 8 digits
long."),
}
)
public String execute() throws Exception {
...
}
How can I accomplish this conditional annotation based validation?
--
View this message in context:
http://www.nabble.com/Con
, fieldName
= "number1", message = "The first part of the number must be 8 digits
long."),
}
)
public String execute() throws Exception {
...
}
How can I accomplish this conditional annotation based validation?
-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org
ieldvalidator(type =
>> ValidatorType.SIMPLE, trim = true, minLength="8", maxLength = "8",
>> fieldName
>> = "number1", message = "The first part of the number must be 8 digits
>> long."),
>> }
>> )
>>
",
>>> fieldName
>>> = "number1", message = "The first part of the number must be 6 digits
>>> long."), @StringLengthFieldValidator(type = ValidatorType.SIMPLE, trim =
>>> true, mi
;>
>>>> @Validations(
>>>>requiredStrings = {...@requiredstringvalidator(type =
>>>> ValidatorType.SIMPLE,
>>>> fieldName = "name", message = "You must enter a name.")},
>>>>
= ValidatorType.SIMPLE, fieldName =
> "number1", message = "You must enter a value for number1."),
> @RequiredStringValidator(type = ValidatorType.SIMPLE, fieldName =
> "number2", message = "You must enter a value for number2.")
>
MPLE, fieldName =
>> "name", message = "You must enter a value for name."),
>> @RequiredStringValidator(type = ValidatorType.SIMPLE, fieldName =
>> "number1", message = "You must enter a value for number1."),
>> @RequiredStringVa
7 matches
Mail list logo