我是靠谱客的博主 内向项链,最近开发中收集的这篇文章主要介绍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]}

 

 

最后

以上就是内向项链为你收集整理的struts1读取配置。的全部内容,希望文章能够帮你解决struts1读取配置。所遇到的程序开发问题。

如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(50)

评论列表共有 0 条评论

立即
投稿
返回
顶部