Results 1 to 3 of 3

Thread: Form Bean vs Action Form

  1. #1
    Junior Member
    Join Date
    Jun 2008
    Answers
    1

    Form Bean vs Action Form

    What is the difference between Form bean and Action form in struts? I thing both have setters,getters,validate,reset methods. Then why Action form is called as model in MVC. Why not Form bean.


  2. #2
    Junior Member
    Join Date
    Aug 2008
    Answers
    15

    Re: Form Bean vs Action Form

    Hi,

    Form bean is bean class it defines set, get, reset, and validate methods used to handle the form which is sent by the client. controller take responsible to handle the form by using form bean class, It should be subtype of org.apache.struts.action.ActionForm, It is provided by framework which is implemented by form bean class (sub class). it is not called as model in MVC.

    thanks

    if u have any doubts reply


  3. #3
    Junior Member
    Join Date
    Jun 2007
    Answers
    20

    Re: Form Bean vs Action Form

    Logically there is only difference between form bean and Action Form that is form bean that we define extends the Action form. Form beans contains the setter and getter of the bean elements. We define our form bean in the struts config under the <form-beans> tag. Or in other word we can say they are alias of the same thing.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact