life cycle of struts?

Answer Posted / ayan mukherjee

When the Framework is loaded, it first loaded the Web.xml
file. Then from the Servlet tag of Web.xml, it identifies
the ActionServlet(or the Struts-Cofig.xml). Then from
welcome-file tag of Struts-Cofig.xml, it identifies the
first JSP page and runs it. Then when the request comes
through that jsp, from acion-mappings tag of Struts-
Cofig.xml it identifies the request, through path tag
(request name) and input tag (jsp name), through name tag
it identifies which bean is needed to access the data and
through type tag it identifies which Action should be
invoked. Then through the forward tag it identifies to
which jsp it has to forward the response.

Is This Answer Correct ?    69 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is actioninvocation?

550


What is the role of action class in struts?

567


How action-mapping tag is used for request forwarding in struts configuration file?

590


What is the naming convention for a resource bundle file in struts2?

549


What are the reasons for an error message not being displayed while developing struts application?

555






What is life cycle of an interceptor?

562


What do struts do?

533


What does action do in struts?

546


Can a reducer dispatch an action?

510


What is dispatch action class?

619


What is use of i18n interceptor?

553


How do I access token?

505


What is the difference between struts and spring?

527


What is the purpose of @element?

590


What is the use of web xml in struts2?

529