Updating WebSphere Commerce Struts configuration files for Web Content Management

+

Search Tips   |   Advanced Search


To update the WebSphere Commerce Struts configuration files for Web Content Managment:

  1. Copy...

    • WC_eardir/Stores.war/WEB-INF/struts-config-ext.xml

    • WC_eardir/SiteAdministration.war/WEB-INF/struts-config-ext.xml

    ...to...

    • /tmp/wcmpear/Stores.war/WEB-INF/struts-config-ext.xml

    • /tmp/wcmpear/SiteAdministration.war/WEB-INF/struts-config-ext.xml

  2. Edit both files

  3. Update the action mappings by inserting the following text before the </action-mappings> tag:
    <action path="/ArticleDisplayView"
            type="com.ibm.commerce.struts.BaseAction">
         <set-property property="https" value="0:1"/>
    </action>
    
    <action path="/ArticlesDisplay"
            type="com.ibm.commerce.struts.BaseAction" 
            parameter="com.ibm.commerce.iwwcm.integration.commands.ArticlesDisplayCmd">
         <set-property property="authenticate" value="0:0"/>
         <set-property property="https" value="0:1"/>
    </action>
    
    <action path="/AllArticlesDisplayView"
            type="com.ibm.commerce.struts.BaseAction">
         <set-property property="https" value="0:1"/>
    </action>
    
    <action path="/ActivateTaskWithIdentifierInfoNotificationView"
            type="com.ibm.commerce.struts.BaseAction">
         <set-property property="https" value="0:1"/>
    </action>
    
    <action path="/FetchContent"
            type="com.ibm.commerce.struts.BaseAction"
            parameter="com.ibm.commerce.iwwcm.integration.commands.SynchronizeIWWCMContentCmd">
        <set-property property="authenticate" value="0:0"/>
        <set-property property="https" value="0:1"/>
    </action>
    <action path="/ArticleDisplay"
            type="com.ibm.commerce.struts.BaseAction" 
            parameter="com.ibm.commerce.iwwcm.integration.commands.ArticleDisplayCmd">
                <set-property property="https" value="0:1"/>
    </action>
    
    <action path="/PublishIWWCMContent"
            type="com.ibm.commerce.struts.BaseAction"
            parameter="com.ibm.commerce.iwwcm.integration.commands.PublishWebContentInIWWCMCmd">
        <set-property property="authenticate" value="0:0"/>
        <set-property property="https" value="0:1"/>
    </action>
    
    <action path="/CancelContent"
            type="com.ibm.commerce.struts.BaseAction"
            parameter="com.ibm.commerce.iwwcm.integration.commands.CancelIWWCMContentCmd">
        <set-property property="authenticate" value="0:0"/>
        <set-property property="https" value="0:1"/>
    </action>
     
    <action path="/RejectContent"
            type="com.ibm.commerce.struts.BaseAction"
            parameter="com.ibm.commerce.iwwcm.integration.commands.RejectIWWCMContentCmd">
        <set-property property="authenticate" value="0:0"/>
        <set-property property="https" value="0:1"/>
    </action>
    
    <action path="/GetExpiredIWWCMContent"
            type="com.ibm.commerce.struts.BaseAction"
            parameter="com.ibm.commerce.iwwcm.integration.commands.GetExpiredIWWCMContentCmd">
        <set-property property="authenticate" value="0:0"/>
        <set-property property="https" value="0:1"/>
    </action>

  4. Update the global forwards by inserting the following text before the </global-forwards> tag:
    <forward name="ArticleDisplayView"
             className="com.ibm.commerce.struts.ECActionForward"
             path="/ShoppingArea/CatalogSection/CatalogEntrySubsection/ArticleDisplay.jsp">
    
            <set-property property="resourceClassName"
                          value="com.ibm.commerce.command.HttpForwardViewCommandImpl"/>
    
    </forward>
    
    <forward name="AllArticlesDisplayView"
                className="com.ibm.commerce.struts.ECActionForward"
                path="/ShoppingArea/CatalogSection/CategorySubsection/AllArticleDisplay.jsp">
    
            <set-property property="resourceClassName"
                          value="com.ibm.commerce.command.HttpForwardViewCommandImpl"/>
    
    </forward>
    
    <forward name="ActivateTaskWithIdentifierInfoNotificationView/0/-3"
             className="com.ibm.commerce.struts.ECActionForward"
             path="/ActivateTaskNotificationWithIdentifier.jsp">
    
            <set-property property="resourceClassName"
                          value="com.ibm.commerce.messaging.viewcommands.MessagingViewCommandImpl"/>
            <set-property property="properties"
                          value="storeDir=no"/>
            <set-property property="interfaceName"
                          value="com.ibm.commerce.messaging.viewcommands.MessagingViewCommand"/>
            <set-property property="implClassName"
                          value="com.ibm.commerce.messaging.viewcommands.MessagingViewCommandImpl"/>
            <set-property property="direct" value="true"/>
    
    </forward> 

  5. Save your changes.


When have completed these steps, continue with
Updating WebSphere Commerce XML configuration files.

 

Related Concepts

WebSphere Commerce Struts framework

 

Related tasks

Overview: Integrating WebSphere Commerce and IWWCM

Install IWWCM integration for WebSphere Commerce on the WebSphere Commerce system

Updating WebSphere Commerce XML configuration files for Web Content Management

Updating registry components