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

Explain public static void main(string args[]).

859


What is %02d?

780


Can we create an object if a class doesn't have any constructor ( not even the default provided by constructor ) ?

778


What is a dot notation?

766


Why for each loop is used?

755


What is boolean false?

740


What is the base class in java from which all classes are derived?

747


What is update method called?

887


Does constructor be static?

782


Differentiate between postfix and prefix operators in java.

879


Explain jdk, jre and jvm?

771


How do you create a null object?

782


Can we define private and protected modifiers for the members in interfaces?

840


Which sort is best in java?

743


What is the relationship between class and object?

777