what is difference between Action messages and Action errors?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
What is blank final variable?
What are the basics of core java?
84. try { 85. ResourceConnection con = resourceFactory.getConnection(); 86. Results r = con.query(”GET INFO FROM CUSTOMER”); 87. info = r.getData(); 88. con.close(); 89. } catch (ResourceException re) { 90. errorLog.write(re.getMessage()); 91. } 92. return info; Which is true if a ResourceException is thrown on line 86? 1 Line 92 will not execute. 2 The connection will not be retrieved in line 85. 3 The resource connection will not be closed on line 88. 4 The enclosing method will throw an exception to its caller.
Question 6 [9] 6.1 In what situations (in general) would you use a TreeMap? (3) 6.2 In what situations (in general) would you use a HashSet to store a collection of values?
how to connect one jsp page to another jsp page????
write a program to create an vector and listeterator.and value should be enter through keyboard.
What about member inner classes?
What is static block?
What is main in java?
how copy the hashmap object into arraylist at java program?
When should I use a singleton?
what is the full form of java