Struts2+Spring+Hibernate In Action(三)
3.?????? Controller配置:
Struts2的配置方法不用多说,只需要导入相应的包后,在web.xml里配置:
- <bean?id="userAction"?class="com.leo.controller.UserController"??
- ????????scope="prototype">??
- ????????<property?name="userService"?ref="userService"?/>??
- ????bean>??
其中userService是前面已经注册过的Service Bean了。接下来就是关于DWR的使用和发送邮件了。
1 楼 LL的蓝 2008-03-27 从哪弄来的文章哦 XMl的<>都是错的