life cycle of struts?

Answer Posted / kartheeswari

There are many steps,

1. After getting the request from the client, the
ActionServlet invokes the goGet() or doPost() method, in
which there is a invokation of process() method.This method
desides the module.

2. Action servlet dispatches the request to RequestProcesor
class which does some core works of ActionServlet.Then
invokes the appropriate Action class.

3. Action class does main business logic and data accessing
(communicating with Moedl) thru execute() method and which
returns the ActionForward object.

4. In b/w the form field validations happens in form bean.

5. Depends upon the value of ActionForward object the view
is decided to display.(output)


4. Form bean is invoked for form field validation,

Is This Answer Correct ?    27 Yes 36 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the life cycle of actionform?

556


What is action class? What are the types of action class?

533


How exceptions are handled in struts application?

539


in struts how to use hibernate with struts>

1831


Why do we need struts?

544






What is the purpose of @validations annotation?

570


Where can I get help with struts?

571


What is actionservlet?

562


Explain how can we upload files in struts2 application?

623


What is s token?

541


Do we need to pay the struts if being used in commercial purpose?

553


What should be the name of xml file used for validation in struts?

543


What does validation interceptor?

549


What is the default suffix for struts2 action uri ?

552


What do you mean by actionservlet?

553