如何给struts2的redirect的result传递多个参数
原先配置如下
<action name="blahblahAction" method="blah">
<result name="success" type="redirect">/some.action?field1=${field1}&field2=${field2}</result>
</action>
运行时候出现如下提示:
The reference to entity "field2" must end with the ';' delimiter.
原因:xml语法规范,使用"&"代替"&"。
<action name="blahblahAction" method="blah">
<result name="success" type="redirect">/some.action?field1=${field1}&field2=${field2}</result>
</action>