struts2中获取地址的参数解决方案

struts2中获取地址的参数XML coderesult nameerror typeredirectAction /gallery/beforeUploadPho

struts2中获取地址的参数

XML code
<result name="error" type="redirectAction" >/gallery/beforeUploadPhoto.action?gallery.galleryId=${galleryId}&amp;error=${error}</result> 


怎么在页面中获取error=${error}的值。


[解决办法]
<s:property value="#parameters.error"/>