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 a numeric string?

553


What happens when you invoke a thread’s interrupt method while it is sleeping or waiting?

559


What are recursive functions? Give some examples?

604


Explain the JDB in depth & command line.

559


Implement 2 stacks with just 1 array. The stack routines must not indicate overflow unless every slot in array is used.

819






What does system.gc() and runtime.gc() methods do?

586


What is array list in java?

577


When would you use a static class?

566


Can you sort a string in java?

480


What is java’s garbage collected heap?

517


What is the disadvantage of java?

496


What are benefits of java?

546


What is the formula to calculate percentage?

518


What are the drawbacks of singleton class?

521


Realized?

1644