How to explain struts work flow

Answer Posted / mairaj

1) The request received by hte ActionServlet which is the
default Controller in Struts...



2)ActionServlet then call RequestProcesser.preProcess
method to find the formbean populate the value to it
validate the values..



3)Once the validating has finished the ActionServlet's
RequestProcesser.preProcess() method call Action class's
execute method where the original business processing
begins....



4)The action class process the method and reurns the result
to ActionServlet.....



5)In returning the Action class provides the key to the
corresponding ActionServlet to determine the reult acqiured
fromprocessing will be diplayed...



6)The ActionServlet then display results to client using
the key provided by the action class..



Hope You understand well..!!

Is This Answer Correct ?    16 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

651


Where should struts xml be placed?

505


what is meant by Struts Validator Framework?

567


What is the purpose of @urlvalidator annotation?

557


how to debug struts project in netbean ?

1923






Can a reducer dispatch an action?

501


What is discontinuous strut?

497


Difference between struts and spring?

583


What are Struts2 core components?

566


what is ACID test for fresh engineers??what is the pattern??

2369


How an actionform bean is created?

571


What is controller in struts ?

537


Which design pattern is implemented by Struts2 interceptors?

552


What is the configuration files used in struts?

529


What is includeaction?

583