Struts2 param

项目中用到了param,查了一些资料,终于搞懂了。

代码
<action name="confNow_*" class="com.gnet.qsby.confReserve.action.ConfNowAction" method="{1}">
<result name="create_success" type="redirectAction">
<param name="actionName">monitorAction</param>
<param name="a">${a}</param>
<param name="b">${b}</param>
<param name="c">${call}</param>
</result>
<result name="create">/jsp/confReserve/confNow.jsp</result>
</action>

 其中系统调用Action时,自动进行匹配。confNow_*中的*为随意,对应Action中的方法。比如confNow_XXX.action

 a,b,c为Action方法返回的参数,分别对应Action中的a,b,call

 转向页面为"actionName"对应的Action

代码
<action name="monitorAction" class="com.gnet.qsby.confmonitor.action.MonitorAction">
<result name="input">/FLEX/MeetingMonitor.jsp</result>
<result name="monitor">/FLEX/monitor.jsp</result>
<result name="json" type="json"></result>
</action>

 

你可能感兴趣的:(C++,c,jsp,json,Flex)