GeekInterview.com
Series: Subject: Topic:
Question: 10 of 110

Struts Heirarchy of Files

What is heirarchy of files in Struts?
Asked by: jeenjustin | Member Since Jul-2008 | Asked on: Jul 30th, 2008

View all questions by jeenjustin

Showing Answers 1 - 5 of 5 Answers
shilpasanand

Answered On : Nov 20th, 2008

View all answers 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.

Yes  3 Users have rated as useful.
  
Login to rate this answer.
shilpasanand

Answered On : Nov 20th, 2008

View all answers by shilpasanand

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.

  
Login to rate this answer.
shilpasanand

Answered On : Nov 20th, 2008

View all answers by shilpasanand

The struts tag libraries include bean tag,template tag,tiles tag,logic tag,html tag libraries.

  
Login to rate this answer.

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).

  
Login to rate this answer.

When we send the request from client then first it touches the ActionServlet--->RequestProcessor---->ActionForm(do the required validations)---->Action (execute method is executed)---->Service class(it is the model layer of MVC design pattern)----->DAO class(this class is used to interact with the database)----->response of database interaction is sent back to Action class--->Action class will display the response in terms of JSP on the client machine.

  
Login to rate this answer.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

Related Open Questions

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Interview Question

 Ask Interview Question?

 

Latest Questions

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.