Created
June 3, 2023 08:41
-
-
Save techisbeautiful/6d2195db4d22ceaf4c4748e1ce1e7ae1 to your computer and use it in GitHub Desktop.
Robust Validation and Error Handling
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class LoginForm extends ActionForm { | |
@RequiredFieldValidator(message = "Username is required.") | |
private String username; | |
@RequiredFieldValidator(message = "Password is required.") | |
private String password; | |
// Getters and setters | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment