本人刚学习struts2谢了一个action,想在传递两个参数,如下,但是两个参数时总是提示错误,一个参数则没有问题,求解释:
<action name="exportAction" class="actions.ExportAction">
<result name="student" type="chain">downloadAction_student?a=1&b=2</result>
<result name="businesscard" type="chain">downloadAction_bussinesscard</result>
</action>
------解决方案--------------------
可以在result标签里面,写param标签
<parma name="a">1</param>
<parma name="b">2</param>
------解决方案--------------------
改成这样试试
<result name="student" type="chain">downloadAction_student?a=1&b=2</result>