what is difference between Action messages and Action errors?

Answer Posted / mishra_pradip(geit)

ActionMessage: A class that encapsulates messages. Messages
can be either global or they are specific to a particular
bean property.
Each individual message is described by an ActionMessage
object, which contains a message key (to be looked up in an
appropriate message resources database), and up to four
placeholder arguments used for parametric substitution in
the resulting message.
ActionErrors: A class that encapsulates the error messages
being reported by the validate() method of an ActionForm.
Validation errors are either global to the entire
ActionForm bean they are associated with, or they are
specific to a particular bean property (and, therefore, a
particular input field on the corresponding form).

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is ascii format?

782


Explain jdk, jre and jvm?

784


What is the dot operator?

781


Can we have 2 main methods in java class?

776


How do you avoid global variables?

800


Can we declare the static variables and methods in an abstract class?

787


What is mutable object and immutable object?

918


What is boolean logic?

797


What is advantage of java?

786


What is the default size of set in java?

740


What are different types of inner classes ?

799


Explain about wait() method?

805


Where pragma is used?

846


What does void * mean?

732


What is object of class in java?

874