<controller>
<set-property property="processorClass"
value="org.springframework.web.struts.DelegatingRequestProcessor" />
</controller>
<message-resources parameter="com.lovo.struts.ApplicationResources" />

<plug-in
className="org.springframework.web.struts.ContextLoaderPlugIn">
<set-property property="contextConfigLocation"
value="/WEB-INF/classes/applicationContext.xml" />
</plug-in>

解决方案 »

  1.   

    你可以在你的struts-config.xml中配置一个插件
    <plug-in 
    className="org.springframework.web.struts.ContextLoaderPlugIn"> 
    <set-property property="contextConfigLocation" 
    value="/WEB-INF/classes/applicationContext.xml" /> 
    </plug-in> 
    他可以让struts-config.xml知道applicationContext.xml的位置所在
    如果你采用struts来管理spring的话你在你的struts中用applicationContext来得到BEAN在spring 中的引用.