life cycle of struts?

Answer Posted / r4avindhar

User clicks on a link in an HTML page
Servlet controller receives the request, looks up mapping information in struts-config.xml, and routes to an action.
Action makes a call to a Model layer service.
Service makes a call to the Data layer (database) and the requested data is returned.
Service returns to the action.
Action forwards to a View resource (JSP page)
Servlet looks up the mapping for the requested resource and forwards to the appropriate JSP page.
JSP file is invoked and sent to the browser as HTML.
User is presented with a new HTML page in a web browser.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many action classes can be used in struts application?

514


What is struts-default package and what are it’s benefits?

581


What is the use of Struts.xml configuration file?

519


What is the purpose of @after?

587


How does struts work?

550






What do you mean by actionform?

585


How many servlet controllers are used in a Struts Application?

515


What is use of i18n interceptor?

540


Describe the two types of formbeans.

581


What are the advantages of spring mvc over struts mvc?

501


What is the difference between filters and interceptors ?

502


What is DynaActionForm?

607


What is struts in java with example?

512


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

543


Why do we need struts?

544