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

Which components are available using actioncontext map?

718


Difference between html tags and struts specific html tags

505


How can we display validation errors on jsp page?

532


What is execute method in struts?

494


Can you explain custom tag?

571






What are the important methods of actionform?

581


What are the sections into which a strut configuration file can be divided?

547


What is the purpose of @results annotation?

712


What is the purpose of interceptors?

528


Which tag is used to declare constants in struts xml?

468


Which servlet does the struts framework use?

512


What do you mean by actionmapping?

530


How can duplicate form submission be handled in struts 2?

533


What is the purpose of @customvalidator annotation?

569


how does request processor relates to action mapping?

484