<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE xwork PUBLIC "-//OpenSymphony Group//XWork 1.0//EN" "http://www.opensymphony.com/xwork/xwork-1.0.dtd"><xwork> 
    <package name="org.calu.action.user" extends="webwork-default">     
 <!-- End By [email protected] -->
        <action name="EditUserAction" class="EditUserAction">
           <result name="success" type="dispatcher">
           pages/user/edit_user.jsp
         </result>
          <interceptor-ref name="params"/>
        </action> 
        
         <action name="EditUserInfoAction" class="EditUserInfoAction">
           <result name="success" type="dispatcher">
           pages/user/edit_userinfo.jsp
         </result>
          <interceptor-ref name="params"/>
        </action> 
         
         <action name="EditUserRightAction" class="EditUserRightAction">
           <result name="success" type="dispatcher">
           pages/user/edit_userright.jsp
         </result>
          <interceptor-ref name="params"/>
        </action> 
        
        <action name="ListUserAction" class="ListUserAction">
           <result name="success" type="dispatcher">
           pages/user/list_user.jsp
         </result>
          <interceptor-ref name="params"/>
        </action> 
        
         <action name="ListVipUserAction" class="ListVipUserAction">
           <result name="success" type="dispatcher">
           pages/user/list_vipuser.jsp
         </result>
          <interceptor-ref name="params"/>
        </action> 
          
        <action name="ViewUserAction" class="ViewUserAction">
           <result name="success" type="dispatcher">
           pages/user/view_user.jsp
         </result>
          <interceptor-ref name="params"/>
        </action> 
        
         <action name="ViewUserInfoAction" class="ViewUserInfoAction">
           <result name="success" type="dispatcher">
           pages/user/view_userinfo.jsp
         </result>
          <interceptor-ref name="params"/>
        </action> 

 
     </package> 
     
</xwork>

解决方案 »

  1.   

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
    <beans>
       <bean name="EditUserAction" class="org.calu.action.user.EditUserAction" singleton="false">
          <property name="newsService"><ref bean="NewsService"/></property>
       </bean>
       <bean name="EditUserInfoAction" class="org.calu.action.user.EditUserInfoAction" singleton="false">
        <property name="newsService"><ref bean="NewsService"/></property>
        <property name="listPageUtil"><ref bean="ListPageUtil"/></property>
       </bean>
       <bean name="EditUserRightAction" class="org.calu.action.user.EditUserRightAction" singleton="false">
        <property name="newsService"><ref bean="NewsService"/></property>
       </bean>
       <bean name="ListUserAction" class="org.calu.action.user.ListUserAction" singleton="false">
        <property name="newsService"><ref bean="NewsService"/></property>
        <property name="listPageUtil"><ref bean="ListPageUtil"/></property>
       </bean>
       
       <bean name="ListVipUserAction" class="org.calu.action.user.ListVipUserAction" singleton="false">
          <property name="newsService"><ref bean="NewsService"/></property>
       </bean>
       <bean name="ViewUserAction" class="org.calu.action.user.ViewUserAction" singleton="false">
        <property name="newsService"><ref bean="NewsService"/></property>
        <property name="listPageUtil"><ref bean="ListPageUtil"/></property>
       </bean>
       <bean name="ViewUserInfoAction" class="org.calu.action.user.ViewUserInfoAction" singleton="false">
        <property name="newsService"><ref bean="NewsService"/></property>
       </bean>
      </beans>