How to specify multiple struts profiles for an app
In most applications, as the scale of the application increases,
The number of actions in the system also increases greatly, causing the Struts.xml configuration file to become very bloated,
In order to avoid struts.xml files too large, bloated, improve the readability of struts.xml files,
We can break a struts.xml configuration file into multiple profiles,
Then the Struts.xml file contains additional configuration files.
Specifying multiple profiles with the <include> element
<struts>
<include file= "Department.xml"/> A module using one profile
<include file= "Employee.xml"/>
</struts>
--------------------------------------------------------------------------------------------------------
Dynamic Method Invocation
Define an action with a wildcard character *
<package name= "Employee" namespace= "/control/employee" extends= "Struts-default" >
<action name= "list_*" class= "cn.itcast.action.HelloWorldAction" method= "{1}" >
<result name= "Success" >/WEB-INF/page/message.jsp</result>
</action>
</package>
Dynamic invocation of a method via wildcard characters