Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What is Struts Flow?

Answer Posted / hemanthkumar

while making a call to index.jsp page straight
away request is not going to the ActionServlet, request is
going to the jsp page. Jsp page is giving output to the
browser. If request is not going to the ActionServlet Struts
framework is not at all involving.
Inside jsp page we have one <html:form> tag is
there. under <html:form> tag all custom tags are involving.
From this Custom tags all sequential methods can be
executed. After that it can execute action attribute, if
action attribute is .do request then it is mapped with
url-pattern of xml file.
while startup am application, ActionServlet
init() will be called because of load-on-startup tag in xml
file.
Struts developers developed ActionServlet and
kept inside struts.jar file.
While starting an application, ActionServlet
object got created and init() will be called. Inside body of
init(), it knows what is the config file and loads complete
content of the configuration file, and stored into the
ModuleConfig object.
Once app started conplete configuration can be
stored into the ModuleConfig object. It contains complete
configuration settings.
After that it will call init() of
RequestProcessor(RP) class. then the moduleconfig object is
going to the Rp.init().Now we have the availability of RP.
After that it will give a call to the form,
whenever we are calling form then formbean obj got created,
then it will look for scope, if scope is request then
formbean obj is stored into the request obj. All the getter
method's will be called for initialization purpose. Now,
once again it is going to the web.xml and call the
ActionServlet. Inside ActionServlet , it will call either
doGet() or doPost(). From this doGet(), it will call the
process() of RequestProcessor. Inside process(), it will
call processPreProcess().
If processPreprocess() returns false, the program
will be terminated.
If it returns true, then it will initialize the
ActionMapping object and call the validate().
If validate() returns error obj, then it will go to
the particular input field and display the errors. Otherwise
Action class object got initialized then execute() will be
called and execute the business logic. Finally interact with
the database....

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What's the purpose of execute method of action class?

911


What is purpose of execandwait interceptor?

1014


Which components are available using actioncontext map?

1126


What are the major differences between html tags and strut specific html tags?

889


What is front controller in struts2?

1016


How to get data from the velocity page in a action class?

909


Describe the mvc on struts?

915


What is the difference between struts1 and struts2?

879


What do you mean by inner class and anonymous class?

997


What do struts do?

907


What is the purpose of constant tag in struts.xml?

883


Can we have multiple struts config files in a single web app?

892


How is a lookup dispatch action created?

960


Which interceptor is responsible for i18n support?

866


What does execandwait interceptor?

970