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?

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 Tutorials/Questions & Answers:
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
Advertisements
validate() method of ActionForm work
validate() method of ActionForm work  How does validate() method of ActionForm work
ModuleNotFoundError: No module named 'actionform'
ModuleNotFoundError: No module named 'actionform'  Hi, My Python... 'actionform' How to remove the ModuleNotFoundError: No module named 'actionform' error? Thanks   Hi, In your python environment you
The ActionForm Class
forwarding it to the sucess.jsp.   What is ActionForm... The ActionForm Class       In this lesson you will learn about the ActionForm
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.ADS_TO_REPLACE_1
AsyncListener Interface important methods
In this section, you will get to know about important methods AsyncListener Interface
AsyncContext Interface important methods
In this section , you will get to know about important methods of AsyncContext Interface
Class AsyncEvent important methods
In this section, you will learn about the important methods of AsyncEvent Class
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 are weak methods?
What are weak methods?  Hi, I am beginner in Data Science and machine learning field. I am searching for the tutorials to learn: What are weak... the topic "What are weak methods?". Also tell me which is the good
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. ADS_TO_REPLACE_1 The most important point
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
Interview Questions - What are important features of Java?
Interview Questions - What are important features of Java?  Hi, What are important features of Java? Thanks   Hi, Being a popular Object Oriented programming language, Java comes with its most important feature. Its
Interview Questions - What are important Java Language Elements?
Interview Questions - What are important Java Language Elements?  Hi, What are important Java Language Elements? Thanks   Hi, Java is vast programming language with many api which comes with the default distribution
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
Interview Questions - What are important Java Editions or Parts of Java?
Interview Questions - What are important Java Editions or Parts of Java?  Hi, What are important Java Editions or Parts of Java? How many components of Java Platform? Thanks   Hi, Java is platform independent object
What's the proper way to test a class with private methods using JUnit?
What's the proper way to test a class with private methods using JUnit?  What's the proper way to test a class with private methods using JUnit
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
Methods of HttpServlet
Methods of HttpServlet  What are methods of HttpServlet
important
important
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
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 is NoSQL?
the computing and management of huge data much user friendly. What
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
Various methods of httpservletresponse interface
Various methods of httpservletresponse interface  What are the various methods of httpservletresponse interface
ModuleNotFoundError: No module named 'important'
ModuleNotFoundError: No module named 'important'  Hi, My Python... 'important' How to remove the ModuleNotFoundError: No module named 'important' error? Thanks   Hi, In your python environment you
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
static methods
static methods  why static methods cannot read or write the instance variables
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
Agile methods
Agile methods   Why use Agile methods?   This methods focus on shorter iterations, in which the software is brought to a releasable level of quality fairly often, usually somewhere between weekly and monthly. Short
Is Python important for finance?
Is Python important for finance?  Hi, I am beginner in Data Science...: Is Python important for finance? Try to provide me good examples or tutorials links so that I can learn the topic "Is Python important for finance?"
Is math important for data science?
Is math important for data science?  Hi, I am beginner in Data...: Is math important for data science? Try to provide me good examples or tutorials links so that I can learn the topic "Is math important for data science
important skills for data scientists
important skills for data scientists  Hi, I am beginner in Data...: important skills for data scientists Try to provide me good examples or tutorials links so that I can learn the topic "important skills for data
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
What is In-Memory Computing?
. Similarly the data storage and real time access to data has also become important... of possibilities for what we can do with this volume of data. While gaining... Important reasons why In-Memory computing is the obvious future Many companies
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
What is Actionable Analytics?
movement. As to begin with what they can do is to gain access to the great volume... areas analytics unfolded to the management. If you know what is lacking, what... is called actionable analytics. Why Actionable Analytics is so important now? Just
Why application server is important?
Why application server is important?  Hi, I have to select the good application server for running my Java based web applications. Which application server or tomcat container is good to run the application. On my website
very important - Kindly help
very important - Kindly help   I am creating web page for form registration to my department ..I have to Reprint the Application Form (i.e Download the PDf File from the Database ) , when the user gives the Application number
Java methods
Java methods  What are the differences between == and .equals

Ads