This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Hi All, I have a question on the ActionMessages , as this class contains the ActionMesaage class object which is used to show the error message . We put the ActionMessage class in the ActionMessages class like ActionMessages.add(ActionMessages.GLOBAL_MESSAGE,new ActionMessage("errorMessage"))
Now my question is that What is the Significance of ActionMessages.GLOBAL_MESSAGE and can i use any String instead of ActionMeassage.GLOBAL_MESSAGE
Specifying ActionMessages.GLOBAL_MESSAGE is the standard way of indicating that the message is not attached to a particular input field or property. If you do wish to attach an error message to a property, it is appropriate to specify the property name instead. This name can then be used in either the <html:errors> or <html:messages> tag to show only the message for that particular property. Example: