Struts

What is directory structure of struts2.0 Framework application?
adplus-dvertising
Previous Home Next

Introduction:

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

Class/Library File Descriptions:

The directory structure of struts2 in MyEclipes as following Assume The name of the project is r4r.

  • r4r /src/mypack:-Aall java file put here.
  • r4r /src:-struts.xml file put here.
  • r4r /WebRoot:-All jsp file ,images and WEB-INF folder put here.directly
  • r4r /webRoot/WEB-INF/lib:- (Includes jars )
  • r4r /WebRoot/WEB-INF/classes:- (All classes will put here. Basically all Servelets, business logic and utility files )
Previous Home Next