Specifying the toolkit extended Struts Action type

To specify the BTT Extended Struts Action Type of each Struts standard actions, do the following:
  1. Start the Struts Tools BTT Extensions.
  2. From the Action Mapping tab of the tool, select an Action from the Struts Action list.
  3. Specify the toolkit extended type of the Action you selected in the Struts Action list. Based on the type of your Struts Action, you can specify its type as any of the following:
    • BTT EJB Action
    • BTT WSIF Action
    • Ordinary Struts Action
  4. Specify the toolkit extended Struts Action properties:
    • If you selected Ordinary Struts Action in step 3, you do not need to specify the Struts Action properties.
    • If you selected BTT EJB Action in step 3, specify the Invoker ID that the Struts Action will call.
    • If you selected BTT WSIF Action in step 3, specify the WSDL file, WSIF to context, and WSIF from context for the WSIF Action. You can click the browse button to specify the WSDL file. Struts Tools BTT Extensions will parse the WSDL file and get the attributes automatically.
  5. Specify other Struts Action properties if necessary. For example, the validation class.
Screen capture of the Action Mapping tab of the Struts Tools BTT Extensions
You can use a WSIF Action return value definition to map the Struts action execution results to certain Struts action forwards. Here is an example:
<action name="transferForm"
		        className="com.ibm.btt.struts.config.BTTWSIFActionMapping" 
		        path="/transfer" 
		        scope="request" 
		        type="com.ibm.btt.struts.actions.WSIFAction" 
		        mapToContext="map1" 
		        mapFromContext="map2" 
		        wsdlFile="http://localhost:9080/BTTHTMLSampleWeb/wsdl/AccountTransfer_ProcessPortType_EJB.wsdl"
		        ns="http://www.example.com/process56026660/"
		        pns="http://www.example.com/process56026660/interface/"
		        pname="ProcessPortType"
		        portType="ProcessPortTypeMicroflowRemotePort"
		        operation="InputOperation"
		        service="ProcessPortTypeService"
		        isAdvancedService="false">
			<!--<forward name="success" path="success.jsp" />-->
			<map key="outData" forward="ok" result="outData" />

</action>

If you want to define this mapping, edit the Struts configuration file manually with an XML editor or text editor.