What is the use of ActionErrors in Struts
Answer / biru
In Validate method for each validation error we need to
construct an object of ActionMessage class and we need to
add each ActionMessage class object to ActionErrors class
object .
Ex:
public ActionErrors validate(ActionMapping
am,HttpServletRequest)
{
ActionErrors aes=new ActionErrors();
if(uname.length==0)
{ ActionMessage am1=new ActionMessage("uname.wrong")
aes.add("uname",am1);
}
}
Is This Answer Correct ? | 5 Yes | 0 No |
What is includeaction?
Explain about how requests from the client are sent?
explain the Struts flow?
what is the current salary package in India for a java programmer who has 2 years experience
What is the difference between a Strut and a Class?
What is strut action mapping?
project architechture in java
3 Answers AC, IBM, INDUS, Satyam,
shall we use any name for deployment descriptor of struts instead of struts-config.xml
What do you mean by a custom tag?
i have list of values(e.g 100). using logic:iterate, how can i print the multiples of 5th element? how the logic:iterate will understand the multiples of 5.
How many struts config file in a struts application?
what is the advantages and diadvantages of Struts?