大家好,我在struts-config.xml里配置了:
<action path="/user/*" type="org.springframework.web.struts.DelegatingActionProxy"
scope="request" parameter="method">
<forward name="user_index" path="/user/user_index.jsp" />
</action>
在spring的配置文件里配置了:
<bean name="/user/*" class="com.web.actions.UserAction">
<property name="userMgr" ref="userMgr" />
<property name="categoryMgr" ref="categoryMgr" />
</bean>
各位大侠,我在地址栏输入xxxx/user/aaaaa.do是找不到user/aaaaa这个bean的,请问怎么做才可以有效?
就是可以在我的UserAction里能够注入上面那两个manager? 是要spring的配置文件里怎么做模式的匹配吗?
还是怎么样??5555555555555555.我弄了好久
<action path="/user/*" type="org.springframework.web.struts.DelegatingActionProxy"
scope="request" parameter="method">
<forward name="user_index" path="/user/user_index.jsp" />
</action>
在spring的配置文件里配置了:
<bean name="/user/*" class="com.web.actions.UserAction">
<property name="userMgr" ref="userMgr" />
<property name="categoryMgr" ref="categoryMgr" />
</bean>
各位大侠,我在地址栏输入xxxx/user/aaaaa.do是找不到user/aaaaa这个bean的,请问怎么做才可以有效?
就是可以在我的UserAction里能够注入上面那两个manager? 是要spring的配置文件里怎么做模式的匹配吗?
还是怎么样??5555555555555555.我弄了好久
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货