tell me struts flow ?

Answer Posted / a.v.satyanarayana

Struts follows mvc pattern.

Model ; which is represented as bussiness components.

View: at view level we have JSP's

Controler: Actionservlet given by the frame work.

This frame work mainly depends upon two xml files.

1) is web.xml where we are moniteriong the controlerpart.

2) struts.config.xml where action classes are congured.

when a request is submitted, this request is handelled by
the controller.And the actionservlet internally checks into
the struts config.xml and identifies the coresponding
action class.

Instantiate that action class and execute the bussiness
logic in that action class and forwards the request to the
required JSP.

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When do I need “struts.jar” on my classpath?

543


What is the purpose of plug-in tag in struct-config.xml?

496


What does params interceptor?

537


What is the purpose of struts.properties in struct2?

531


Can explain about the validations and in your project where did u used the validations?

6413






Whats the difference between the default namespace and the root namespace?

521


How to build struts application in eclipse?

531


How you will display validation fail errors on jsp page?

546


What is role of actionservlet?

569


Provide some important Struts2 constants that you have used?

568


Which configuration files are used in struts?

529


What is the difference between requestaware and servletrequestaware interface?

582


Why do we need mapdispatchtoprops?

476


What are the differences between Struts1 and Struts2 or how Struts2 is better than Struts1?

586


What configuration changes are required to use resource files in Struts?

573