life cycle of struts?

Answer Posted / manohar reddy. vummadi

From Jsp page the controller looks into <form>tag with that
it enters into the web.xml, in web.xml it checks the <url-
pattern> tag, and it maps with <servlet-name> tag in
<servlet-mapping> tag, again it checks with <servlet-name>
which is there in <servlet> tag, it looks for corresponding
<servlet-class>.The Controller goes in strus-config.xml
from the it controller checks with the (req name) both in
<action> and <form-bean> if it is matching it will look
into the FormBean class.In FormBean class we have to write
setters and getters for the form input fields which are
there in Jsp page.Then the req is forwadard to Action
class. In Action class it will do some business logic based
on the requirement.

Is This Answer Correct ?    19 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is http redirect?

570


How can link tag’s action attribute be used?

525


How do struts work?

526


What is the difference between validation.xml and validator-rules.xml files in struts?

513


What configuration changes are required to use Tiles in Struts?

570






What is the purpose of @conversion annotation annotation?

599


What is the purpose of @before?

556


How tag libraries are defined in Struts?

576


Why do we use struts?

579


At the point, you should go for struts framework?

549


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

547


What is execute method in struts?

496


How does one create an action in struts 2?

530


What are the differences between Struts1 and Struts2 or how Struts2 is better than Struts1?

586


In struts, how can we access java beans and their properties?

562