在使用Struts的标签<html:cancel>进行取消操作的时候,需要设置对应Action的cancellable属性,具体的设置方法如下:
1
<action attribute="registerForm" input="/test.do"
2
validate="true" name="registerForm" path="/register"
3
scope="request" >
4
<set-property property="cancellable" value="true"/>
5
</action>
<action attribute="registerForm" input="/test.do"2
validate="true" name="registerForm" path="/register"3
scope="request" >4
<set-property property="cancellable" value="true"/>5
</action>
浙公网安备 33010602011771号