论坛首页 入门技术论坛

struts+spring+hibernate整合了一天了,还没成功

浏览 16925 次
精华帖 (0) :: 良好帖 (0) :: 新手帖 (1) :: 隐藏帖 (0)
作者 正文
   发表时间:2007-08-18  
汗...404这么高深的错误...
你直接运行的首页 就是这个错误麽 ?
还是跳转后出的错误 ?
0 请登录后投票
   发表时间:2007-08-19  
问题在前些天已经解决了,太忙了,没回贴,呵呵
主要就是少了个type="org.springframework.web.struts.DelegatingActionProxy"
0 请登录后投票
   发表时间:2007-08-19  
这样每个Action分别在struts-config.xml和Spring配置文件中要配置相应的内容,有个办法,在struts-config.xml配置文件中只加入
<controller processorClass= "org.springframework.web.struts.DelegatingRequestProcessor">
, 随后,只需在Spring配置文件中配置相应的Action即可
0 请登录后投票
   发表时间:2007-08-27  
9 lou right
0 请登录后投票
   发表时间:2007-09-19  
give up ,
take "Rails"
0 请登录后投票
   发表时间:2007-09-19  
web.xml要配上welcomefiles
0 请登录后投票
   发表时间:2007-09-20  
用Spring的DelegatingRequestProcessor重载Struts 默认的 RequestProcessor。这样当收到一个针对Action的请求时,DelegatingRequestProcessor会自动从Spring Context中查找对应的Action Bean。

格式如下:

<controller>
<set-property property="processorClass" value="org.springframework.web.struts.DelegatingRequestProcessor"/>
</controller>
0 请登录后投票
   发表时间:2007-09-20  
在strurts-config.xml添加
0 请登录后投票
   发表时间:2007-09-20  
我以前也出过和你一样的问题,是spring的配置文件不对
0 请登录后投票
   发表时间:2007-09-21  
建议看一下modelstry,虽然下载不到了,但是看一下他得主要流程!也是很有用处得
0 请登录后投票
论坛首页 入门技术版

跳转论坛:
Global site tag (gtag.js) - Google Analytics