I\'m trying to make a login page in Struts. The idea is to validate if the user exists, etc, and then if there is an error, return to the login page with the errors in red (the
In struts action:
ActionErrors errors = new ActionErrors();
errors.add("", new ActionMessage("login.msg.err"));
saveErrors(request, errors);
The "hello.msg.err" is define in MessageBundle.properties
login.msg.err=Wrong user name or password
In you JSP, error will be shown by h:errors tag:
This video shows you step by step & explain you all those things: https://youtu.be/YcCsJtqI72A