Create a folder named lib under the new project and put the jar package into the lib folder and put it into the classpath.

\

Writing struts2 configuration files:

\

Write the struts2.xml configuration file

\

\

The struts-default. XML, struts-plugin. XML, and struts.xml configuration files are loaded. 1. Because the DTD constraints for all three files are the same, if all three files have the same item, the last one overwrites the previous one. Because you load what’s before you load what’s after. Struts. XML must be found under SRC.

\