<package name="struts-abc" namespace="/public/common/test" extends="struts-default">
      <action name="abc" class="abc">
    <result name="success" type="dispatcher">/web/abc.jsp</result>
     </action>
   </package>
http://localhost:8080/dev/public/common/test/abc.action
试一下 
再就是你的<action name="abc" class="abc">这个CLASS路径对吗? 没有包吗?

解决方案 »

  1.   


    有包,在spring里面,那个没有问题
      

  2.   

    实际上我是有extends的,所有的package都继承了自己写的拦截器我刚刚又试了一下,如果所有的配置文件都在classpath下则包含多级也没有问题,如果是在其他目录下则不行
      

  3.   

    我觉得是路径问题,你得struts-a.xml被include到struts.xml后,再去include下一级的struts-b.xml时是从struts.xml文件的当前路径开始的寻找struts-b.xml,而你的struts-a.xml中的file指定的路径肯定就有问题了。
      

  4.   

    直接在struts.xml中include所有的xml,没必要整这么多级。
    你直接把struts-b.xml include到struts.xml中,不就可以了吗
      

  5.   

    我不 include 不出现问题,一include 就报  There is no Action mapped for namespace / and action name listPricing.--------------------------------------------------------------------------------
    或者是There is no Action mapped for action name listPricing.
    怎么回事??
      

  6.   

    不知道楼主为什么要用"多级",用多个xml倒是可以的
    struts.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>
         <include file="struts-default.xml"/>
       <!-- 系统管理 --> 
         <include file="sysMng-struts.xml"/>
       <!-- 后台管理 --> 
         <include file="backMng-struts.xml"/>
       <!-- 前台事件 --> 
         <include file="event-struts.xml"/> 
     </struts>然后,sysMng-struts.xml,backMng-struts.xml,event-struts.xml再分别包今各自的拦截器
    如果像楼主说的一级套一级的话,那耦合度不是太高了么,这样分模块管理就失去了原本的意思....