struts1读取配置。

<struts-config>
 <display-name>struts-config</display-name>
 <description>struts总部署文件</description>
 <form-beans>
  <form-bean name="welcomeForm" type="com.inforerp.sys.form.WelcomeForm" />
 </form-beans>
 <!-- The "global-exceptions" element describes a set of exceptions that
  might be thrown by an Action object. The handling of individual exception
  types is configured through nested exception elements. An <action> element
  may override a global exception handler by registering a local exception
  handler for the same exception type. Since Struts 1.1. -->
 <global-exceptions>
  <!-- <exception type="java.lang.ClassNotFoundException" path="/page/error.jsp"></exception> -->
 </global-exceptions>
 <!-- The "global-forwards" element describes a set of ActionForward objects
  [org.apache.struts.action.ActionForward] that are available to all Action
  objects as a return value. The individual ActionForwards are configured through
  nested <forward> elements. An <action> element may override a global forward
  by defining a local <forward> of the same name. -->
 <global-forwards>
  <forward name="aa" path="/test.jsp" />
 </global-forwards>
 <action-mappings>
  <action path="/loginName" forward="/test.jsp" name="welcomeForm" />
  <action path="/welcome" type="com.inforerp.sys.action.WelcomeAction"
   name="welcomeForm">
   <!-- <forward name="aa" path="/test.jsp" /> -->
  </action>
  <action path="/xmlParse" type="com.inforerp.sys.action.XmlParseAction" />
 </action-mappings>
 <!-- <controller> </controller> -->
 <message-resources parameter="i18n_message.MessageResources">
  <set-property value="JSTL" key="mode" />
 </message-resources>
 <!-- <plug-in className=""></plug-in> -->
</struts-config>

forwards={aa=ForwardConfig[name=aa,path=/test.jsp,redirect=false,module=null,extends=null,catalog=null,command=null]}

actionconfigs
{
/xmlParse=ActionConfig[cancellable=false,path=/xmlParse,validate=true,scope=session,type=com.inforerp.sys.action.XmlParseAction, /loginName=ActionConfig[
cancellable=false,path=/loginName,validate=true,forward=/test.jsp,name=welcomeForm,scope=session,
/welcome=ActionConfig[cancellable=false,path=/welcome,validate=true,name=welcomeForm,scope=session,type=com.inforerp.sys.action.WelcomeAction
}

actionconfigids={}

actionconfiglist=[ActionConfig[cancellable=false,path=/loginName,validate=true,forward=/test.jsp,name=welcomeForm,scope=session, ActionConfig[cancellable=false,path=/welcome,validate=true,name=welcomeForm,scope=session,type=com.inforerp.sys.action.WelcomeAction, ActionConfig[cancellable=false,path=/xmlParse,validate=true,scope=session,type=com.inforerp.sys.action.XmlParseAction]

 

messageResources={
org.apache.struts.action.MESSAGE=MessageResourcesConfig[factory=org.apache.struts.util.PropertyMessageResourcesFactory,null=true,escape=true,parameter=i18n_message.MessageResources]}

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值