Struts 文件模块的包换
也就是把配置文件分开到几个模块中去。以免相互影响
?
1 Struts.xml
<struts>
??? <constant name="struts.devMode" value="true" />
??? <include file="login.xml" />
</struts>
。
2 login.xml"
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC
??? "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
??? "http://struts.apache.org/dtds/struts-2.0.dtd">
<struts>
??? <package name="login" extends="struts-default" namespace="/login">
??????? <action name="login*" class="com.bjsxt.struts2.user.action.LoginAction{1}">
??????????? <result>/user_login_success.jsp</result>
??????? </action>
??? </package>
</struts>