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

Why we use struts in java?

522


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

528


How does struts work?

556


How do you create message resource?

592


When should we use SwtichAction?

604






What is the difference between struts1 and struts2?

520


If the framework doesn’t do what I want, can I request that a feature be added?

512


Which interceptor is responsible for mapping request parameters to action class Java Bean properties?

569


what is meant by Struts Validator Framework?

575


What are the some useful annotations introduced in struts2?

552


How client side validation is enabled on a jsp form?

597


What is the forward action utilized for?

562


Are struts and shocks the same?

517


What is struts.devmode?

583


What is the purpose of @requiredstringvalidator?

568