读书人

Struts2+Spring+Hibernate In Action(

发布时间: 2012-10-25 10:58:57 作者: rapoo

Struts2+Spring+Hibernate In Action(三)

3.?????? Controller配置:

Struts2的配置方法不用多说,只需要导入相应的包后,在web.xml里配置:

            1. <bean?id="userAction"?class="com.leo.controller.UserController"??
            2. ????????scope="prototype">??
            3. ????????<property?name="userService"?ref="userService"?/>??
            4. ????bean>??

            其中userService是前面已经注册过的Service Bean了。接下来就是关于DWR的使用和发送邮件了。

            1 楼 LL的蓝 2008-03-27 从哪弄来的文章哦 XMl的<>都是错的

读书人网 >软件架构设计

热点推荐