Prepare for your Next Interview
This is a discussion on Form Bean vs Action Form within the Java forums, part of the Software Development category; 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 ...
|
|||
|
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.
|
| Sponsored Links |
|
|||
|
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 |
|
|||
|
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.
|
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How can validate the form fields with action path | Geek_Guest | Java | 2 | 2 Weeks Ago 09:39 AM |
| form 16 | ajityadav121 | Information Technology | 2 | 2 Weeks Ago 11:57 AM |
| How to get the data of some fields from previous form to current form? | naname | QTP | 4 | 04-29-2008 04:26 PM |
| Form 6i | saibka | Database General | 1 | 01-02-2008 12:51 AM |
| form 10g problem | arbind1982 | Oracle | 0 | 09-26-2007 06:02 PM |