就像在Struts2中一样,我们可以在struts.xml中提供参数值,如下所示
<action name="myS2Action" class="demo.myS2Action">
<result>/myS2Page.jsp</result>
<param name="myS2Param">value</param>
</action>在Struts1中,有没有办法在struts-config.xml中设置一些参数值?
我在struts-config.xml中有以下条目
<form-bean name="myS1Form" type="demo.MyS1Form"></form-bean>
<action path="/myS1Action" type="demo.myS1Action" name="myS1Form" scope="request" >
<forward name="success" path="/myS1Page.jsp"></forward>
</action>发布于 2012-11-07 13:08:12
在Strut1配置中,我们可以使用set-property标签。下面的问题与set-property标签的用法有关。
https://stackoverflow.com/questions/11790100
复制相似问题