Directory structure for a Struts folder

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.
What are action and action form classes in Struts?
Action classes are defined to handle request. Actions exist between Model and view of an application. The struts-config.xml file designates the Action classes that ...
How does the native language understand data types in JAVA?
Java native Interface (JNI) is a programming framework that allows Java code to interact with code written in another language...
Exception handling in JNI
There are two ways to handle an exception in native code: -The native method can choose to return immediately, causing the exception to be thrown in the Java code ....
Post your comment