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

Can we have multiple struts config files in a single web app?

0 Answers  


Does apache tomcat use struts?

0 Answers  


How to upload struts file?

0 Answers  


What are the important methods of actionform?

0 Answers  


What is the difference between struts and spring?

0 Answers  






What is the purpose of @customvalidator annotation?

0 Answers  


What is the purpose of @doublerangefieldvalidator annotation?

0 Answers  


can we change the location of struts-config.xml file?

2 Answers   TCS,


what are the actions in struts?

10 Answers   Nihilent, Wipro,


What is the purpose of action-mappings tag in struct-config.xml?

0 Answers  


What is the DynaActionForm? How we implement the dynaactionform ? can u please tell me the way to implement? in understandable way?

8 Answers   JBA Infotech,


Can we write Structs application without using Action Class directly or indirectly(extends Action class)

5 Answers  


Categories