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 the purpose of form-beans tag in struct-config.xml?
What is the life cycle of actionform?
Hi frnds Ima facing problm with tomcat configuration.kindly can any one tell to me what is the mistake iam doing.i already configured tomcat as fallowing http://www.ibm.com/developerworks/opensource/library/os-eclipse-tomcat/ even though iam getting the PortNO .and changed with different no of Ports but no working kindly can any one tell me what is the mistake iam doing........?
Where can I get help with struts?
What are the loop holes of struts?
What is the purpose of form-be tag in struct-config.xml?
What is actioninvocation in struts2?
What is the procedure of operation of a form tag?
What is the use of jsonvalidation?
What is the main difference between Mvc1 and Mvc2 Architecture??
7 Answers IBM, Ness Technologies,
Give an example where struts tiles may be used?
Briefly tell the two kinds of form beans.