首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > J2EE开发 >

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

2012-07-29 
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"/>

热点排行