GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  J2EE  >  Struts
Go To First  |  Previous Question  |  Next Question 
 Struts  |  Question 101 of 103    Print  
Struts Heirarchy of Files
What is heirarchy of files in Struts?


  
Total Answers and Comments: 4 Last Update: May 14, 2009     Asked by: jeenjustin 
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: shilpasanand
 
In Struts, the hierarchy is, first the control will go to web.xml, then it will check for struts-config.xml in it, it will access struts-config.xml and then it will go into the action-mapping where it will check for the Action class and accordingly it will call the jsp class from the input attribute present in struts-config.xml and then forward to the correct page. 

Above answer was rated as good by the following members:
tarigopula
November 20, 2008 08:29:20   #1  
shilpasanand Member Since: November 2008   Contribution: 5    

RE: Struts Heirarchy of Files
In Struts the hierarchy is first the control will go to web.xml then it will check for struts-config.xml in it it will access struts-config.xml and then it will go into the action-mapping where it will check for the Action class and accordingly it will call the jsp class from the input attribute present in struts-config.xml and then forward to the correct page.
 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
November 20, 2008 08:33:53   #2  
shilpasanand Member Since: November 2008   Contribution: 5    

RE: Struts Heirarchy of Files
Struts-config.xml plays an important role in struts framework and it is used mainly to have an access to various Action classes using the Action-mapping element and then to forward it to appropriate jsp files.
 
Is this answer useful? Yes | No
November 20, 2008 08:40:03   #3  
shilpasanand Member Since: November 2008   Contribution: 5    

RE: Struts Heirarchy of Files
The struts tag libraries include bean tag template tag tiles tag logic tag html tag libraries.
 
Is this answer useful? Yes | No
May 14, 2009 01:55:30   #4  
ameesala Member Since: May 2009   Contribution: 2    

RE: Struts Heirarchy of Files

When the request is recived by ActionServlet it looks for the ActionMapping entries in the Struts-config.xml. ActionMapping returns the appropriate Action class where we handle the business logic.Finally execute() returns the ActionForward key (View).


 
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