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 does interceptor work in struts2?

512


What are different ways to create Action classes in Struts2?

600


What are the steps used to setup dispatch action?

501


How can forward action be used to restrict a strut application to mvc?

526


What are the two scope types for formbeans?

613






What is actionform in struts?

491


What is the purpose of @element annotation annotation?

605


What does apache struts do?

508


How can we display validation errors on jsp page?

539


What is the role of action class?

576


What are best practices to follow while developing Struts2 application?

613


How is the action mapping specified?

558


What is struts validator framework?

554


Explain about struts?

560


What’s the difference between struts and turbine?

560