Struts – Alternative of <html:errors /> to display error messages in Jsp?
Struts – Alternative of <html:errors /> to display error messages in Jsp?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
By setting the attribute
message="false"on the<html:messages />tag, it gets all errors stored onActionMessageslist ifsaveErrorswas called.The
<html:messages id="aMsg" message="false">display messages stored onsaveErrorswhile<html:messages id="aMsg" message="true">display messages stored onsaveMessages. There is no moreActionErrorsobject, justActionMessages. The ‘saveErrors’ and ‘saveMessages’ method seperates the errors and messages respectively.