GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  J2EE  >  Struts
Go To First  |  Previous Question  |  Next Question 
 Struts  |  Question 63 of 103    Print  
What is struts flow? Explain in detail

  
Total Answers and Comments: 6 Last Update: March 06, 2009     Asked by: kalpana 
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: nitin
 

all the above answers are can be fitted in the "what is struts?"

Struts is based on MVC architecuture. Flow of struts is as follows if my understanding of question is correct

1. request comes.

2. corrosponding action class will be searched in the struts.xml

3. mapped form-bean will be populated with data.

4. execute method of mapped action servlet will be executed and result will be mapped in struts.xml with <forward> tag.

5. mapped jsp/html page with forward will be displayed.



Above answer was rated as good by the following members:
bernardsha, sushilkotnala
August 08, 2006 12:16:37   #1  
niranjan        

RE: What is struts flow? Explain in detail

struts is a open source implementation of MVC design pattern to develop large scale web applications.Struts framework makes it easier to design realible scalable web applications in java.Struts is not only thread safe but also thread dependent.It instantiates each action once and allows others to be threaded through the original object.Struts reduces the for redundant jsp's.ActionForm stratagy reduces the need of sub class hierarchy.

Struts is a light weight package.It consists of 5 core packages and 5 tag lig directories.


 
Is this answer useful? Yes | NoAnswer is useful 0   Answer is not useful 1Overall Rating: -1    
August 14, 2006 10:47:20   #2  
Jangam        

RE: What is struts flow? Explain in detail
Struts Flow is a part of Apache Cocoon's Control Flow to Struts to allow complex workflow like multi-form wizards to be easily implemented using continuations-capable Javascript and eventually Java.
 
Is this answer useful? Yes | No
August 27, 2006 13:28:49   #3  
nitin        

RE: What is struts flow? Explain in detail

all the above answers are can be fitted in the what is struts?

Struts is based on MVC architecuture. Flow of struts is as follows if my understanding of question is correct

1. request comes.

2. corrosponding action class will be searched in the struts.xml

3. mapped form-bean will be populated with data.

4. execute method of mapped action servlet will be executed and result will be mapped in struts.xml with <forward> tag.

5. mapped jsp/html page with forward will be displayed.


 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
September 15, 2006 17:14:05   #4  
Pardeep Dureja        

RE: What is struts flow? Explain in detail
Struts Flow Control starts from ActionServlet on receiving request ActionServlet Delegate request to Request Processor it is request processor that finds appropriate formbean on the basis of request populate formbean do required validation and execute app. action based on request.Hope this will solve ur quest...Pardeep Dureja
 
Is this answer useful? Yes | No
October 15, 2006 17:03:36   #5  
Sankar        

RE: What is struts flow? Explain in detail
Hi



If the client comes to the struts application then the flow of control will be..



1) The request received by hte ActionServlet which is the default Controller in Struts...



2)ActionServlet then call RequestProcesser.preProcess method to find the formbean populate the value to it validate the values..



3)Once the validating has finished the ActionServlet's RequestProcesser.preProcess() method call Action class's execute method where the original business processing begins....



4)The action class process the method and reurns the result to ActionServlet.....



5)In returning the Action class provides the key to the corresponding ActionServlet to determine the reult acqiured fromprocessing will be diplayed...



6)The ActionServlet then display results to client using the key provided by the action class..



Hope You understand well..!!



Bye!

 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
March 06, 2009 02:36:30   #6  
uday.sakhre Member Since: September 2008   Contribution: 1    

RE: What is struts flow? Explain in detail
Struts is a open source frame work used for implementation for MVC design pattern on server side to create web application.
 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape