its a ActionForm controller or model?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we integrate struts with spring?

780


What is the use of struts?

701


What is struts2 framework?

695


What are struts in java?

675


What is spring hibernate and struts in java?

685


What is the difference between struts and spring?

685


What is action support class in struts2?

743


What is pojo in struts2?

747


Give an example where struts tiles may be used?

740


What is front controller in struts2?

740


Explain the components of struts?

724


Explain about the library tag?

771


How long do struts last?

700


What is the purpose of @after?

748


What are the loop holes of struts?

766