tell me struts flow ?

Answer Posted / ram-sd softech

1. When we start a web application based on struts the web
container creates a
servlet object based on
2. The web container creates the request and response
objects.
3. The web container calls the service method of Action
Servlet by passing the request and the response objects.
4. The Code of Action Servlet checks the struts-
config.xml with path /action at action mappings tag we
discussed how is that as earlier (page-8). Now if it is
there then it creates the ActionOne Object then after it
calls the execute method of ActionOne class.
5. After that it forwards to jsp.If any problem eraises
it shows Exception.
6. After that the Web container will start the execution
of .jsp as we discussed in JSP’s.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How struts 2 validation works?

582


How to combine the struts with velocity template?

494


What are the struts2 configuration properties that control file uploading process?

608


What is the flow of requests in struts based applications?

566


What are the differences between http direct and http indirect?

474






What is filter dispatcher in struts?

537


What are the custom tags?

534


Can you explain struts validator framework?

578


What do you mean by inner class and anonymous class?

599


Can we have more than one struts-config.xml file for a single struts application?

535


What’s the difference between validation.xml and validator-rules.xml files in struts validation framework?

585


Explain the components of struts?

546


How many servlet controllers are used in a Struts Application?

515


Will the struts tags support other markup languages such as wml ?

553


How can you create your custom interceptor in struts 2?

539