What is directory structure of struts framework application?

What is directory structure of struts framework application?

Previous Home Next

 

The directory structure of a struts application is same as dynamic web application's.The struts has one more xml file to configure ActionServelet, ActionForms, Actions etc. Struts also added two other xml file(optional) to validate the data entered by users. Struts use resources files to implements I18N in our application.

 The directory structure of struts is as following Assume project is name r4r. 

  • r4r /WEB-INF:- This is not public .No file into this can used by clients directly 
  • r4r /WEB-INF/lib:- (Includes jars )
  • r4r /WEB-INF/classes:- (All classes will put here. Basically all Servelets, business logic and utility files ) 
  • r4r/ :- WEB-INF+ All JSP and static web resources(like images, html, css etc) are stored into r4r or subfolder of r4r like for all css files may be into r4r/css etc .
The following Directory Structure in Struts 1.3 Using MyEclipse IDE


Previous Home Next