Modify the definition file for presentation layer application

Put your short description here; used for first paragraph and abstract.

  1. Remove /jsp:useBean statement from JSP files. These files are Frameheader.jsp and creditCardsWelcome.jsp
  2. Add the following statement below into all of the Struts configuration files:
    <struts-config>
    ........
         <controller processorClass="com.ibm.btt.struts.base.BTTRequestProcessor"/> 
  3. Modify web.xml
    1. In web.xml, there is a path definition error in RAD/WID development environment:
      <init-param>
             <param-name>config</param-name>
             <param-value>WEB-INF/struts-config.xml</param-value>
      </init-param>

      Modify <param-value>WEB-INF/struts-config.xml</param-value> to <param-value>/WEB-INF/struts-config.xml</param-value>

    2. There two optional parameters in web.xml:
      • directmapping:
        <init-param>
               <param-name>directmapping</param-name>
               <param-value>ture</param-value>
        </init-param>
        This parameter is optional and the default is false if you don't specify it. But, if you specify the parameter and the value is true, you need to modify each of the formbean class name in the struts configuration file by the following statement:
        <form-beans>
          <form-bean name="paymentForm" type="com.ibm.btt.struts.base.BTTActionForm">
          </form-bean>
        </form-beans>

        Then the application will not prepare the formbean class and the BTT Struts Extension will handle the mapping from the http request data to the BTT context automatically.

      • tokenProcessor:
        <init-param>
               <param-name>tokenProcessor</param-name>
               <param-value>com.customer.TokenProcessor</param-value>
        </init-param>

      It is not necessary to define it in the web.xml file and the default value is com.ibm.btt.struts.utils.BTTTokenProcessor

Now you complete all the migration work for the application. You can deploy the application and execute the transaction in RAD 6.0.1 and WID 6.0.1