<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>
<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>
解决方案 »
- linux下 URLEncoder.encode编码错误
- 用poi 读取excel2007 创建XSSFWorkbook对象时 java.lang.OutOfMemoryError: Java heap space
- 怎么用JAVA开发本机应用
- 帮忙看一下,谢谢了
- 关于文件读写的问题,求一段代码(急-----)
- Spring AOP
- txt文件读取
- web service到底是什么东东? 谁能帮我详细解释一下? 谢谢!
- spring problem
- 请问大家,怎样用jbuilder2005开发servlet?
- java如果获取前一个页面的title
- 急!在线等,axis2中如何为某个服务自定义一个Handler
<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 中的引用.