Can you explain the directory structure for a Struts folder in brief?For using structs framework, directory structure is created in tomcat.
Steps for creating directory structure are: Step1: Extract strut’s folder and copy struct war file to tomcat’s webapps directory. Rename to struts2tutorial and unzip it in the tomcat’s webapps directory. Now start the tomcat and type http://localhost:8080/struts2tutorial/into your browser.
Step 2: Now delete the content of struts2tutorial\WEB-INF\src and struts2tutorial\WEB-INF\classes directories, as we don't need these files that come with struts 2 blank applications.
Step3: Create build.xml file in the struts2tutorial\WEB-INF\src
Step4: Create directory libext under the struts2tutorial\WEB-INF\ then you copy latest Servlets api jar file over there. This library file will be used to compile Servlets in our application.
Step5: Now create directories java and classes under struts2tutorial\WEB-INF\src. The directorystruts2tutorial\WEB-INF\src\java will be used to put the entire java sources file and directory struts2tutorial\WEB-INF\src\classes will be used to store compiled java files.
|