struts-config.xml
<action
attribute="getusernamebyitemForm"
input="/getusernamebyitem.jsp"
name="getusernamebyitemForm"
path="/getusernamebyitem"
parameter="method"
scope="request"
type="org.springframework.web.struts.DelegatingActionProxy" />
spring配置文件
<bean name="/getusernamebyitem"
class="com.yourcompany.struts.action.GetusernamebyitemAction">
<property name="characterItemsDAO">
<ref bean="CharacterItemsDAO" />
</property>
</bean>
本文介绍了一个具体的Struts与Spring框架集成的例子,通过struts-config.xml和spring配置文件展示了如何配置Struts中的action映射,并通过Spring管理业务对象。
1493

被折叠的 条评论
为什么被折叠?



