Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


what is difference between Action messages and Action errors?

Answers were Sorted based on User's Feedback



what is difference between Action messages and Action errors?..

Answer / gajendra

ActionErrors represent collection of ActionError objects.
ActionMessages ia super class of ActionErrors in Struts.

In Struts 1.2 ActionError and ActionErrors classes are
deprecated.

We have to use ActionMessage and ActionMessages instead.

Is This Answer Correct ?    13 Yes 1 No

what is difference between Action messages and Action errors?..

Answer / 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

what is difference between Action messages and Action errors?..

Answer / mothilal d

The difference between the classes is zero -- all behavior
in ActionErrors was pushed up into ActionMessages and all
behavior in ActionError was pushed up into ActionMessage.
This was done in the attempt to clearly signal that these
classes can be used to pass any kind of messages from the
controller to the view -- errors being only one kind of
message

clearly saying that ActionErrors Method is deprecated in
earlier versions of struts and same features are pushed in
to ActionMessges now in latest versions

Is This Answer Correct ?    7 Yes 3 No

Post New Answer

More Core Java Interview Questions

What will happens if you opened Internet Explorer 4 times?

2 Answers  


What is a jagged array in java?

0 Answers  


What java ide should I use?

0 Answers  


Is set ordered?

0 Answers  


Is java supports multiple inheritance? explain?

12 Answers   BUET, Inforica,


Why enumeration is faster than iterator?

0 Answers  


Define package in Java.

1 Answers  


What is the purpose of static keyword in java?

0 Answers  


when we create singleton design then we create private constructtor..so how JVM take private constructor to make object..but it's private..

1 Answers   Ness Technologies,


what really hapens when a object is created using new operator? 1.is it allocates memory to all variables and methods in the class with reference to that object?

3 Answers  


what are the design patterns in struts?

1 Answers  


What will happen if static modifier is removed from the signature of the main method?

0 Answers  


Categories