1.

What Is The Purpose Of @doublerangefieldvalidator Annotation?

Answer»

his validation annotation CHECKS that a double field has a value within a specified range. If NEITHER min nor max is set, nothing will be done.

public class Employee extends ACTIONSUPPORT{

@DoubleRangeFieldValidator(MESSAGE = "Default message", 

key = "i18n.key", shortCircuit = true, 

minInclusive = "0.123", maxInclusive = "99.987")

public STRING getIncome() {

return income;

}

}

his validation annotation checks that a double field has a value within a specified range. If neither min nor max is set, nothing will be done.

public class Employee extends ActionSupport{

@DoubleRangeFieldValidator(message = "Default message", 

key = "i18n.key", shortCircuit = true, 

minInclusive = "0.123", maxInclusive = "99.987")

public String getIncome() {

return income;

}

}



Discussion

No Comment Found