does struts also provide framework for displaying messages similiar to that of displaying errors? errors.add(ActionErrors.GLOBAL_ERROR,new ActionError(..)); <html:errors/> Also what is the meaing of ActionErrors.GLOBAL_ERROR, what other keys can I specify here.. thanks in advance!
ActionError deosnt mean that u can display only errors with that .u can use it for any messages......to avoid this false assumption they came up with ActionMessages in 1.1 and ActionErrors is deprecated and even removed in 1.2 version of struts
Action messages is like a Hashmap with key as some string and value being the List of messages u add in that category .that ActionErrors.ERROR_KEY is the constant u r suing to store the errors in thatkey
this key comcept willbe essential if u want to display the error realted to a particlkaur field adjacent to that instead of diaplying all the errors in the page in one shot
Joined: Apr 07, 2004
so I can use ActionErrors to display non-error messages? thanks!