Geeks Talk

Prepare for your Next Interview




Form Bean vs Action Form

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 ...


Go Back   Geeks Talk > Software Development > Java

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 06-26-2008
Junior Member
 
Join Date: Jun 2008
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
ramesh.sure is on a distinguished road
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.
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 2 Weeks Ago
Junior Member
 
Join Date: Aug 2008
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
sjava.438 is on a distinguished road
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
Reply With Quote
  #3 (permalink)  
Old 2 Days Ago
Junior Member
 
Join Date: Jun 2007
Location: India
Posts: 20
Thanks: 0
Thanked 5 Times in 3 Posts
deeptiagrawal is on a distinguished road
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.
Reply With Quote
Reply

  Geeks Talk > Software Development > Java


Thread Tools
Display Modes


Similar Threads

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


All times are GMT -4. The time now is 06:14 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Copyright © 2008 GeekInterview.com. All Rights Reserved