Dear all, :roll: Im learning J2EE and Im a beginner What is JavaBean? What is the use of the getter and setter functions described in the Bean? How it is used to transfer data from a GUI and a database? In case of Struts we are using ActionForm What is its use? Kindly response to my question.
ActionForm: An ActionForm is a JavaBean that extends org.apache.struts.action.ActionForm. ActionForm maintains the session state for web application and the ActionForm object is automatically populated on the server side with data entered from a form on the client side.
In Struts, java bean which extends ActionForm acts like a transform object between view (jsp) and action (servlet). so u can directly access the properties defined in jsp. on a return from servlet, it is useful in displaying the values of properties using BEAN or HTML tag of struts.