The definition of a EJB Access Action has the following attributes:
Table 1. <action> tag attributesAttribute |
Description |
name |
The name of the <form-bean> element to use with the EJB
Access Action. |
className |
The class name of configuration bean. |
path |
The application context-relative path to the
EJB Access Action. |
type |
The Java class
name of the EJB Access Action. The Branch Transformation Toolkit provides com.ibm.btt.struts.actions.EJBAction as
the EJB Access Action class, and you can create your own if necessary. |
invokerID |
The ID of the bound invoker. The InvokerFactory generates the
invoker instance according to this key and then retrieves the EJB
binding data from a resource bundle file. The EJB binding data
includes information such as the JNDI name and home class name. |
Note: For a complete list of the Struts defined attributes
for the <action> tag, see
The Struts
User's Guide at the Apache Web site.
Following is an example of an EJB Access Action:
<action name="creditCardForm" path="/creditcardprocessed"
className="com.ibm.btt.struts.config.BTTEJBActionMapping"
type="com.ibm.btt.struts.actions.EJBAction"
input="/creditCardProcessedPage.jsp" invokerId="creditcardprocessedinvoker">
<forward name="success" contextRelative="true" path="/btt/html/accountSummary/accountinquiry.jsp"/>
</action>