Home Answers Viewqa Struts The ActionForm and what are important methods in ActionForm.

 
 


Clark
The ActionForm and what are important methods in ActionForm.
1 Answer(s)      2 years and 7 months ago
Posted in : Struts

What is the ActionForm and what are important methods in ActionForm?

View Answers

November 20, 2010 at 5:02 PM


Hi friends,

ActionForm is javabean which represents the form inputs containing the request parameters from the View referencing the Action bean.

The important methods of ActionForm are : validate() & reset().

validate() : Used to validate properties after they have been populated; Called before FormBean is handed to Action. Returns a collection of ActionError as ActionErrors. Following is the method signature for the validate() method.

ActionErrors validate(ActionMapping mapping,HttpServletRequest request)

reset(): reset() method is called by Struts Framework with each request that uses the defined ActionForm. The purpose of this method is to reset all of the ActionForm's data members prior to the new request values being set.

Thanks..









Related Pages:
The ActionForm and what are important methods in ActionForm.
The ActionForm and what are important methods in ActionForm.  What is the ActionForm and what are important methods in ActionForm
ActionForm
ActionForm  What is ActionForm
The ActionForm Class
forwarding it to the sucess.jsp.   What is ActionForm... The ActionForm Class       In this lesson you will learn about the ActionForm
validate() method of ActionForm work
validate() method of ActionForm work  How does validate() method of ActionForm work
Diff Bn Actionform and Pojo - Struts
Diff Bn Actionform and Pojo   Hi Friends, I am confused with Pojo and ActionForm ,bcoz both have getter and setter methods.In both we declare fields and corresponding getter n setters also.plz  
validte method call upon ActionForm creation.
validte method call upon ActionForm creation.  I want to know if validate method is called when ActionForm object is created?   Hi, The validate method is not called when ActionForm object is created. The validate
Class AsyncEvent important methods
In this section, you will learn about the important methods of AsyncEvent Class
AsyncContext Interface important methods
In this section , you will get to know about important methods of AsyncContext Interface
AsyncListener Interface important methods
In this section, you will get to know about important methods AsyncListener Interface
methods
methods  PrintStream class has two formatting methods,what
methods
methods  PrintStream class has two formatting methods,what
methods
methods  PrintStream class has two formatting methods,what
What is most important features of Java
What is most important features of Java  Hi, What is the most important features of Java? Thanks   Hi, The latest version of Java 7 having some most important features like Java virtual Machine, Language updates
What is the most important requirement for OLTP ?
What is the most important requirement for OLTP ?   What is the most important requirement for OLTP ?   Hi, In the transaction server..., supermarkets, and manufacturers. The most important point about oltp
What modifiers are allowed for methods in an Interface?
What modifiers are allowed for methods in an Interface?   Hi, What modifiers are allowed for methods in an Interface? thanks
what is class methods in objective c
what is class methods in objective c  What is class methods in objective c? Explain the class method of objective c with the help of an example
what is class methods in objective c
what is class methods in objective c  What is class methods in objective c? Explain the class method of objective c with the help of an example
What are the methods in Object? - Java Beginners
What are the methods in Object?   Hi, What are the methods in Object? Give example of methods in Object. Thanks   Hello, There are lot of method in object class some of are as follows toString(); wait
Methods of HttpServlet
Methods of HttpServlet  What are methods of HttpServlet
important for all beginers
important for all beginers  what is the difference for top down approach and bottom up approach with a example program of source code with clear explanation
Important things in the Cloud Computing
Important things in the Cloud Computing  Hi, What are the Important things in the Cloud Computing? Thanks   Hi, Here is the list of important things in the Cloud Computing or the important skills necessary for Cloud
What are the most common methods of Hibernate configuration?
What are the most common methods of Hibernate configuration?  Hi, What are the most common methods of Hibernate configuration? thanks
important topics to prepare for java interview
important topics to prepare for java interview  hi friends can anyone tell what are the important topics to prepare for java interview????   Each and every topic is important for an interview. You can find some
Java methods
Java methods  What are the differences between == and .equals
native methods
native methods  what is native methods in java?   A native method is a method that is implemented in a language other than Java. The Java native method is a great way to gain and merge the power of C or C++ programming
Outsourcing: The Most Important Questions - RoseIndia
Outsourcing: The Most Important Questions Introduction Outsourcing work is an important business decision that can make or mar your prospects... of the important components that help you to take the right decisions
Various methods of httpservletresponse interface
Various methods of httpservletresponse interface  What are the various methods of httpservletresponse interface
Searching For Important Issues for Writing Articles
important issues depends on the following things: About what industry do you usually write about? What are your subjects of interest? What is the current... Searching For Important Issues for Writing Articles  
java object class methods
java object class methods  What are the methods in Object class?  There are lots of methods in object class. the list of some methods are as- clone equals wait finalize getClass hashCode notify notifyAll
GET and POST methods
GET and POST methods   What are the differences between GET and POST methods in form submitting, give the case where we can use GET and we can use POST methods
factory methods in java?
factory methods in java?  what are factory methods in java?   Hi Friend, Factory methods are static methods that return an instance of the native class like Pattern.compile(), Calendar.getInstance
abstract methods in java
abstract methods in java  what is abstract methods in java.give better examples for understanding   Hi Friend, Please visit the following link: http://www.roseindia.net/java/master-java/abstract-class.shtml Thanks
HTML form methods GET and POST
HTML form methods GET and POST  What is the difference between the HTML form methods GET and POST
java methods - Java Beginners
java methods  Hello, what is difference between a.length() and a.length; kindly can anybody explain. thanks for your time  Hi Friend, length() is used to find the length of string whereas length is used
Methods - Calling
Java Notes Methods - Calling What happens when a method is called Space.... When you call methods which are defined in your own class, you don't need
Methods in Java - Java Beginners
Methods in Java  Hello. Currently i am involved in a group project and we have each been given a specific part of code to create our joint programI... this, or if someone could show me or do it for me or whatever, you know what i
In Struts What is Model?
In Struts What is Model? This tutorial explains you What is Model in Struts... on the MVC design patter and Model plays important role in the framework. In any.... In the Action class itself you can call the methods of application service
What is Social Media Marketing?
What is Social Media Marketing? The big question arise in your mind that 'What... to the traditional marketing methods that we are used to. Of course, the name says... a pop-up window regardless of what product it was presenting with. However
java methods - Java Interview Questions
java methods  what are native methods? how and when they are use... the so-called native method interface. Writing native methods involves importing C code into your Java application. The steps to creating native methods
Java Methods Problem - Java Beginners
Java Methods Problem  I have to write a program that has three types... the customer what type of pie they like and store it in kind and then ask... the total slices sold and the total amount made for all the pies? This is what I
Java Methods Problem - Java Beginners
Java Methods Problem  I have to write a program that has three types... the customer what type of pie they like and store it in kind and then ask... the total slices sold and the total amount made for all the pies? This is what I
Readability
is extremely important. Especially important factors: Naming, indentation, conventions... be followed. Some of the most important are: Indentation. Statements which... one of them. Meaningful names. Variables, methods, classes, etc must
inheritance....please help me friends...!!!... this is important project that i have to do it..
inheritance....please help me friends...!!!... this is important project that i have to do it..   Point ................. #x : int #y : int... and methods for Circle class. In the Circle default constructor, value 0
Static/Class methods
Java NotesStatic/Class methods There are two types of methods. Instance methods are associated with an object and use the instance variables of that object. This is the default. Static methods use no instance
Methods involved to carry out an effective business analysis?
Methods involved to carry out an effective business analysis?  What are the methods involved to carry out an effective business analysis
differences between GET and POST methods in form submit
differences between GET and POST methods in form submit  What are the differences between GET and POST methods in form submitting, give the case where we can use GET and we can use POST methods
Important Question
Important Question  Respected Sir, I am Sanjay Baniwal working in BHEL as a Software Developer as a trainee for One Year. And i have been given a Project in which i have to create a JSP page with a Drop Down List in which all