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上下文
<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上下文
解决方案 »
- 请教高手在struts2中用JS向action传值的问题
- java2word操作word样式问题
- jboss 不输入工程名 直接用ip:端口访问,要怎么设置?
- MyEclipse下手写servlet的问题
- struts2使用token无法获取参数
- 八个J2EE的高级群,按层次划分,共享教程代码,期待各位朋友加入(需考试)
- webwork结合sitemesh时,找不到valueStack的值?
- 我的struts例子写好后,开tomcat的时候出现了以下错误!请各位帮帮忙拉:)
- jboss3.2与mysql-connector-java-3.0.5-gamma,请帮忙!
- 求助,在eclipse的debug时,断点旁边出现一个很小的斜杠,进入debug会跳入String.class
- 一个奇怪的日期问题(高手解答)
- 约会去了,很开心,散分:)
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这个目录了
网上查质料说是commons-attributes-api.jar的问题,但我不 知道这个jar包是 做那 放面的
<plug-in className="org.springframework.web.struts.ContextLoaderPlugIn">
<set-property property="contextConfigLocation" value="/WEB-INF/applicationContext.xml" />
</plug-in>