Apache Struts Question:
Download Job Interview Questions and Answers PDF
Describe validate() and reset() methods?
Answer:
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.
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.
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.
Download Struts Interview Questions And Answers
PDF
Previous Question | Next Question |
What are the important methods of ActionForm? | What is ActionMapping? |