struts1读取配置。

来源:互联网 发布:php页面乱码 编辑:程序博客网 时间:2024/05/18 02:24

<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]}

 

 

原创粉丝点击