ssh的整合:首先要在struts-config.xml中配置spring的上下文环境
<plug-in className="org.springframework.web.struts.ContextLoaderPlugIn">
    <set-property property="contextConfigLocation" value="/WEB-INF/applicationContext.xml" />
  </plug-in>
然后将action type替换
type="org.springframework.web.struts.DelegatingActionProxy"你的错误信息就是提示没有初始化spring上下文

解决方案 »

  1.   

    WEB.xml在项目启动的时候没有找到你的CONTEXT,你的那个路径可能写错了<plug-in
    className="org.springframework.web.struts.ContextLoaderPlugIn">
    <set-property property="contextConfigLocation"
    value="/WEB-INF/classes/applicationContext.xml" />
    </plug-in> 注意你applicationContext.xml的位置如果在你的src下的话,请不要将="/WEB-INF/classes/applicationContext.xml写成="/WEB-INF/src/applicationContext.xml因为项目发布后就没有SRC这个目录了
      

  2.   

    我上 面的 问题解决了,只要 加入spring2.0完整的jar,就可以了,但我这里又出了另外的 问题      严重: Error getConfigured
    网上查质料说是commons-attributes-api.jar的问题,但我不 知道这个jar包是 做那 放面的
      

  3.   

    你问的问题 没有研究过。spring用到的相关包都是开发工具导入的
      

  4.   

    为什么不打插件呢
    <plug-in       className="org.springframework.web.struts.ContextLoaderPlugIn">   
                    <set-property       property="contextConfigLocation"       value="/WEB-INF/applicationContext.xml"       />   
            </plug-in>
      

  5.   

    struts-config.xml中少了插件,web.xml中少了加载spring配置文件的servlet配置