实话说  有什么关系呢 struts可以其他名称,是为了:小组内可以进行模块化设计时,每个人都可写自己的 struts_XX.xml ,保持功能相对独立

解决方案 »

  1.   

    从不期望有这个功能,使用默认struts.xml就很够了. 有其它配置文件就用 import .
      

  2.   

    在struts.xml 中使用  <include file="struts-user.xml"></include>  将struts-user.xml 包含在struts.xml中
    参考 struts.xml include
      

  3.   

    楼上是对的,这个struts最好不要去改。楼主想写自己的struts的话,可以像楼上说的那样,再写一个**.xml文件,在struts.xml里面include就好了。
      

  4.   

    http://struts.apache.org/download.cgiSource:
        struts-2.3.16.3-src.zip (7MB) [PGP] [MD5]下载src源码包,然后将源码关联起来就可以看到了
      

  5.   

    关于那个怎么修改默认读取的struts文件你弄过吗  就是我不想用struts.xml这个文件  想自己写个再把其他的包含进来  ,启动时 就默认加载我写的这个
      

  6.   

    可以修改
    参考 修改struts2默认配置文件struts2控制器org.apache.struts2.dispatcher.FilterDispatcher说类默认导入/classes struts.xml,所修改web.xml文件
    <filter>
            <filter-name>struts2</filter-name>
            <filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
            <init-param>
                <param-name>config</param-name>
               <!-- 配置装载struts.xml路径其struts.xml放/src/struts/-->
                <param-value>struts-default.xml,struts-plugin.xml,../struts.xml</param-value>
            </init-param>
        </filter>
        <filter-mapping>
            <filter-name>struts2</filter-name>
            <url-pattern>/*</url-pattern>
        </filter-mapping> 
    配置struts.xml放/WEB-INF下了高版本的struts2 将 org.apache.struts2.dispatcher.FilterDispatcher 替换为新的过滤器