<%@ page language="java" contentType="text/html;charset=UTF-8"%> <%@ taglib prefix="netui" uri="http://beehive.apache.org/netui/tags-html-1.0"%> <%@ taglib prefix="netui-data" uri="http://beehive.apache.org/netui/tags-databinding-1.0"%> <%@ taglib prefix="netui-template" uri="http://beehive.apache.org/netui/tags-template-1.0"%>

${pageFlow.URI}

action2 accepts a form bean of type BaseFormBean. In the first case, we pass it an instance of that. In the second case, we pass it an instance of the derived SubclassFormBean.

action3 accepts interface SomeInterface. In the third case, we pass it an instance of SubclassFormBean, which implements the interface.

value in form bean: ${pageInput.formValue}

pass base form bean to action2
pass subclass form bean to action2
pass subclass form bean (which implements the right interface) to action3