struts2 result传递参数问题

  开始一直配置为:

<action name="org" class="com.spl.action.OrganizationAction"> <result name="index">/org/index.jsp</result> <result name="add_input">/org/add_Input.jsp</result> <result name="add_success" type="redirectAction">org!list?orgDto.pid=${orgDto.pid}</result> <result name="errorMessage">/message.jsp</result> </action>

 

 一直用抓包工具抓包,发现redirectAction的Url为:org!list,郁闷至极,后来改为:

<action name="org" class="com.spl.action.OrganizationAction"> <result name="index">/org/index.jsp</result> <result name="add_input">/org/add_Input.jsp</result> <result name="add_success" type="redirectAction"> <param name="actionName">org!list</param> <param name="orgDto.pid">${orgDto.pid}</param> </result> <result name="errorMessage">/message.jsp</result> </action>

  一切正常...注意:orgDto.pid为action中的Object属性

你可能感兴趣的:(struts,object,list,Class,input,action)