<%@ page contentType="text/html;charset=UTF-8" language="java" %> <%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %> <%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %> <%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %> <title>Test struts-html:cancel Tag

Cancel Not Allowed - Error Message

Pressing the Cancel button should display an error message, since Cancellable is not set for this Action but an Exception handler has been configured to handle the throw exception.

 


Cancel Not Allowed - Exception

Pressing this Cancel button should throw an org.apache.struts.action.InvalidCancelException since Cancellable is not set for this Action and no exception handler was configured.

 


Cancel Allowed (Validate true)

Pressing this Cancel button should return to the Welcome page, as Cancellable is set to true for this Action.

 


Cancel Ignored (Validate false)

Pressing this Cancel button should return to the Welcome page, as validate is set to false for this Action.