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

1.can we transfer a request from one struts application to another struts application? 2. how many types of action servlets r there what r they

2768


What are the steps involved in creating a strut application?

524


What is the purpose of @requiredstringvalidator annotation?

540


What is http redirect?

577


Which configuration files are used in struts?

533






What is the difference between forwardaction and includeaction?

541


What kind of mvc is struts 2?

565


Explain struts.devmode?

575


What do you mean by the abstract package in struts2, and what is its utilization?

521


How struts2 supports internationalization?

662


Can you explain aware interfaces in struts2?

594


What is the use of resourcebundle.properties file in Struts Validation framework?

588


What are the conditions for actionform to work correctly?

536


What does action do in struts?

546


Why do we need mapdispatchtoprops?

484