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

How is a lookup dispatch action created?

536


What is struts framework in java?

535


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

564


how to develop the submit and search operations in single jsp using struts?

2560


Can a reducer dispatch an action?

501






Why we use struts over servlets?

526


Can you explain the directory structure for a struts folder in brief ?

526


Do you need an alignment after replacing struts?

526


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

521


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

535


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

581


What is execute method in struts?

496


What is http redirect?

569


What are Struts2 core components?

566


What is xml based validation in struts2?

562