I'm new to struts and assigned to web project using struts and ibatis. I want to validate two input where user must put their new passwords twice, the validation used to check whether the two new password are the same. Anyone has a clue from where i should start? do i have to use validator framework? Any feedbacks will be fully appreciated
I am not sure why you are calling super.validate twice. If posisi_password_baru1 is null, then your code will throw a NullPointerException. You may want to add a check in your code. If you have a "required" check in your xml validation, then you may want to bracket your custom validation code with an " if (errs.isEmpty())" check.