struts2中Action怎样获取动态表单中的多行数据
1个回答
展开全部
struts-config>
<form-beans>
<form-bean name="trafficForm" type="com.ccit.safetm.controller.traffic.TrafficForm"></form-bean>
</form-beans>
<action-mappings>
<action path="/traffic/addTraPolicy" type="com.ccit.safetm.controller.traffic.AddTraPolicyAction" name="trafficForm" scope="request">
<forward name="success" path="/jsp/success.jsp"></forward>
<forward name="error" path="/jsp/error.jsp"></forward>
</action>
</action-mappings>
</struts-config>
<form-beans>
<form-bean name="trafficForm" type="com.ccit.safetm.controller.traffic.TrafficForm"></form-bean>
</form-beans>
<action-mappings>
<action path="/traffic/addTraPolicy" type="com.ccit.safetm.controller.traffic.AddTraPolicyAction" name="trafficForm" scope="request">
<forward name="success" path="/jsp/success.jsp"></forward>
<forward name="error" path="/jsp/error.jsp"></forward>
</action>
</action-mappings>
</struts-config>
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询