Validating data

The Struts framework provides data validation based on java beans (ActionForm). The Branch Transformation Toolkit also provides data validation based on the contexts. You can use both in your application. You can write your own validation class and put it into the Struts configuration file, as follows:
<action name="financialInfoForm" 
	path="/finacialFinal" 
	className="com.ibm.btt.struts.config.BTTEJBActionMapping" 
	type="com.ibm.btt.struts.actions.EJBAction" 
	input="/requestDataPage.jsp" 
	invokerId="financialfinalinvoker" 
	validator="com.ibm.btt.samples.html.FinancialInfoXVal">
In the example above, the Struts framework will call the com.ibm.btt.samples.html.FinancialInfoXVal validation class when the financialInfoForm action is called.