Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


its a ActionForm controller or model?

Answers were Sorted based on User's Feedback



its a ActionForm controller or model?..

Answer / ysr

ActionForm not Model component
It is just a View Data Transfer class
so it just part of Controller Even Struts API also
specifing this thing.

Model component nathing but where we are connecting to
database from our appliction
suppose if we are connecting DB from our Action class i.e
Model or if we are Connecting DB from EJB's or DAO i.e the
Model so FormBean is not Model component

Is This Answer Correct ?    16 Yes 1 No

its a ActionForm controller or model?..

Answer / ratheeshnellikkal

Actually model is designed to handle business logic and
data.
Action Form is basically carrying the data from view to
Action Class,so it is coming under model.

Is This Answer Correct ?    16 Yes 8 No

its a ActionForm controller or model?..

Answer / sandya

Which one is correct in above two answers????
Please clarify. Iam getting confused

Is This Answer Correct ?    9 Yes 1 No

its a ActionForm controller or model?..

Answer / ysr

ActionForm not Model component
It is just a View Data Transfer class
so it just part of Controller Even Struts API also
specifing this thing.

Model component nathing but where we are connecting to
database from our appliction
suppose if we are connecting DB from our Action class i.e
Model or if we are Connecting DB from EJB's or DAO i.e the
Model so FormBean is not Model component

Is This Answer Correct ?    7 Yes 1 No

its a ActionForm controller or model?..

Answer / sivadasan

ActionForm is consider as Controller,Because

While ActionForm beans often have properties that
correspond to properties in your Model beans, the form
beans themselves should be considered a Controller
component. As such, they are able to transfer data between
the Model and View layers.

I hope it will helpful

Is This Answer Correct ?    3 Yes 0 No

its a ActionForm controller or model?..

Answer / mohan

I agree with Ramesh, Actionform is just a bean whr we will
be having setters and setters and some business logic and
validation rules, so its becomes Model, where as a Action
Class consists of ActionServlet, which as an intermediate
between Model and View(JSP), so the Action class becomes
the Controller... hope it helps...

Is This Answer Correct ?    6 Yes 4 No

its a ActionForm controller or model?..

Answer / raghavendra

Model are the classes that contains the code according to
the businees logic of the company.This logic is called
business logic.

In case of MVC 2 architecture, the contoller is a
combination of ActionServlet, Action classes and formbean
(ActionForm ) classes.

Is This Answer Correct ?    2 Yes 0 No

its a ActionForm controller or model?..

Answer / saurabh gupta

Action Form is a part of view.....

it is basically a data container which works between view
and controller...for moder interaction we have value
objects and or business object which can be mapped to form
bean.

Acc to Struts Complete Ref. the form bean is a part of View.

Is This Answer Correct ?    1 Yes 0 No

its a ActionForm controller or model?..

Answer / pope

Think of concept MVC. According to the Architecture(I hope
u know about this s***) for controller we have servlet
controller ,model as serve u with the business and
actionForm (think of action submit ) which is used for the
form validation which is far far away from other two
component
:-)

Is This Answer Correct ?    1 Yes 1 No

its a ActionForm controller or model?..

Answer / rasool

When you send request,request before gng to the Action classes,ActionForm(FormBean) will be executing and just it is just a View Data Transfer class.And it is not a business logic,just it is validating form fields.

Observe once struts config file
<action path="/test" name="formname" type="ActionClass"/>

First check path in actions and check if name attribute there or not if exists gng to the FormBean class not Actionclass.
So it is part of controller..

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Struts Interview Questions

we have 7 jsp pages .At last page we have a submit button when we click it it will store all jsps data which we provide will store into database. when we starting providing data in jsp pages when we are at 3rd jsp at that time sessions timeout where the data will be store which we r provide in last two jsps?

2 Answers  


What is token used for?

0 Answers  


What is struts actionmapping?

0 Answers  


how can i fetch combo box value into my DAO using struts 2?

3 Answers  


Which tag is used to declare constants in struts xml?

0 Answers  


Are struts thread safe?

0 Answers  


What is the purpose of global-forwards tag in struct-config.xml?

0 Answers  


Please can you tell me ,where can we used the MVC other than web applications.

1 Answers  


what is the advantages and diadvantages of Struts?

1 Answers  


What are action errors and error and what are the consequences they impose?

0 Answers  


what is the difference between *.do & /do.*/? So what is the diffenence btn extension mapping & path mapping.What is those difference in work effect?

6 Answers   Wipro,


What are the applications of struts?

0 Answers  


Categories