protected void validateEqualString ( String s1 , String s2 , String errorKey , String errorMessage ) { if ( s1 == null || s2 == null || ( ! s1 . equals ( s2 ) ) ) { addError ( errorKey , errorMessage ) ; } }
Validate equal string .