Struts2:<s:action>的使用

<s:action name=”actionName” namespace=”/” executeResult=”true”>


<s:action>可以在jsp中直接调用action,记得配置namespace

executeResult=“true”时,action执行完后,result对应的视图将在当前jsp中显示。

准确说来,应该是<s:action>标签所在的位置被该action返回的视图填充。

当前jsp内容和返回的视图混合在一起。如果executeResult=“false”,则当前jsp不会有任何变化。

posted @ 2016-11-16 19:54  且听风吟-wuchao  阅读(427)  评论(0编辑  收藏  举报