How to explain struts work flow

Answer Posted / karthick prabu.v

1) when the client send a request first it will goes to the
web.xml file.
2) there it will check the ActionServlet class(contoller).
3)From there it goes to the struts config.xml file
4)in the config.xml file it checks the form bean class and
execute class
5) then the controll goes to the model class.(Action class).
6)execute the logic in the action class.
7) after completion of the execution it send some response
to the controller.
8)then the controller goes to the config.xml file and checks
the where the controller have to go.
9)again it come back to the controller and goes to the
related jsp file.
10)there the jsp file execute and give the out put to the
browser.

Is This Answer Correct ?    23 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How is token generated?

536


What are the struts2 error message keys that can come during file uploading process?

605


Is struts compatible with other java technologies?

531


Which library is provided by struts for form elements like check boxes, text boxes etc?

510


What is Custom Type Converter in Struts2?

630






How is the action mapping specified?

554


What is actionmapping?

598


Which class is the Front Controller in Struts2?

544


What is the purpose of @conversion?

607


How are interceptors and servlet filters different?

495


What is the role of a handler in mvc based applications?

750


What configurations are stored in struts configuration file ?

534


What applications use apache struts?

499


How can we display all validation errors to user on jsp page?

649


What is includeaction?

583