分模块开发
1 单独写配置文件,把配置文件引入到核心配置文件中
被引入的文件:hello.xml
<?xml version="1.0" encoding="UTF-8"?>
<!-- struts2约束 start -->
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.3//EN"
"http://struts.apache.org/dtds/struts-2.3.dtd">
<!-- struts2约束 end -->
<struts>
<package name="hellodemo" extends="struts-default" namespace="/">
<action name="myhello" class="com.hlg.action.HelloAction">
<result name="ok">/hello.jsp</result>
</action>
</package>
</struts>