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 is the action mapping specified?

534


Is struts compatible with other java technologies?

517


What applications use apache struts?

486


What is actioninvocation?

526


Explain about the process of functioning of the struts program?

577






What are the aware interfaces in struts2?

541


What is the purpose of redirect result type?

559


What are action errors?

552


What is struts framework in java?

512


What are the core components of a struct2 based application?

548


How action mapping is configured in Struts?

555


What is struts.devmode?

567


What are the cons of struts 2?

559


What’s the difference between struts and turbine?

546


How is the mvc design pattern used in struts framework?

503