zoukankan      html  css  js  c++  java
  • IBM WebSphere Commerce backend dev

    IBM WebSphere 开发者技术期刊

    http://www.ibm.com/developerworks/cn/websphere/techjournal/index.html

    ----------------------

    配置页面中文显示

    D:\WCToolkitEE60\properties\com\ibm\commerce\tools\statistics\properties\

    ProductStatNLS.properties

    # path=D:\WCToolkitEE60\properties\com\ibm\commerce\tools\statistics\properties\ProductStatNLS.properties
    
    BrandStatPageTitle = BrandStatTitle
    CategoryStatPageTitle = CategoryStatTitle
     

    ProductStatNLS_zh_CN.properties

    # path=D:\WCToolkitEE60\properties\com\ibm\commerce\tools\statistics\properties\ProductStatNLS_zh_CN.properties
    BrandStatPageTitle = \u5546\u54c1-\u54c1\u724c\u7edf\u8ba1
    CategoryStatPageTitle = \u5546\u54c1-\u54c1\u7c7b\u7edf\u8ba1
    
     


    配置菜单按钮中文显示

    D:\WCToolkitEE60\properties\com\ibm\commerce\tools\properties\

    mccNLS.properties

    # 
    # Operations / Logistics
    #----------------------------------------------
    # add by tangxj start 
    BrandStatPulldownButton = BrandStatPulldownButton
    CategoryStatPulldownButton = CategoryStatPulldownButton
    # add by tangxj end
     

    mccNLS_zh_CN.properties

    配置功能资源绑定

    D:\WCToolkitEE60\xml\tools\stat\

    BrandStat.xml

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE action SYSTEM "../common/List.dtd">
    <!--
     *===================================================================
     * Licensed Materials - Property of IBM
     *
     * WebSphere Commerce
     *
     * (c) Copyright International Business Machines Corporation. 2003
     *     All rights reserved.
     *
     * US Government Users Restricted Rights - Use, duplication or
     * disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
     *===================================================================
    -->
    
    <action resourceBundle="statistics.ProductStatNLS"
     	formName = "findprice"        
        helpKey=""    >
      <parameter
    	listsize="20"
           	startindex="0"
    	resultssize="0"
    	endindex="0"
     	/>
      <scrollcontrol
            title="BrandStatTitle"
    	  display="true"/>
      <controlpanel
            display="true"/>
    
      <jsFile src="/wcs/javascript/tools/common/Util.js" />
    </action>
    
     

    CategoryStat.xml

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE action SYSTEM "../common/List.dtd">
    <!--
     *===================================================================
     * Licensed Materials - Property of IBM
     *
     * WebSphere Commerce
     *
     * (c) Copyright International Business Machines Corporation. 2003
     *     All rights reserved.
     *
     * US Government Users Restricted Rights - Use, duplication or
     * disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
     *===================================================================
    -->
    
    <action resourceBundle="statistics.ProductStatNLS"
     	formName = "findprice"        
        helpKey=""    >
      <parameter
    	listsize="20"
           	startindex="0"
    	resultssize="0"
    	endindex="0"
     	/>
      <scrollcontrol
            title="CategoryStatTitle"
    	  display="true"/>
      <controlpanel
            display="true"/>
    
      <jsFile src="/wcs/javascript/tools/common/Util.js" />
    </action>
    
     

    resources.xml

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE resourceConfig SYSTEM "../common/Resources.dtd">
    <!--
     *===================================================================
     * Licensed Materials - Property of IBM
     *
     * WebSphere Commerce
     *
     * (c) Copyright International Business Machines Corporation. 2003
     *     All rights reserved.
     *
     * US Government Users Restricted Rights - Use, duplication or
     * disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
     *===================================================================
    -->
    
    <!-- This is the configuration file for the inventory objects that are
         available in the runtime model -->
    
    <resourceConfig>
    
    <resource nameSpace="statistics">
    
      <!-- resource bundle file mappings -->
    
      <resourceBundle name="ProductStatNLS"
                      bundle="com.ibm.commerce.tools.statistics.properties.ProductStatNLS" />
    
        <!-- XML file mappings -->
        <resourceXML name="BrandStat"
             file="stat/BrandStat.xml" />
        <resourceXML name="CategoryStat"
             file="stat/CategoryStat.xml" />
    		 
    </resource>
    </resourceConfig>
    
     

    配置功能资源注册到总资源

    D:\WCToolkitEE60\xml\config\wc-server.xml

        <ToolsGeneralConfig
            DTDPath="tools/common;tools/devtools;tools/bi;tools/catalog;schema/xml;sar"
            XMLCacheSize="0"
            XMLPath="tools;tools/devtools;WEB-INF/xml/tools;WEB-INF"
            developmentMode="false" display="false" resourceBundlePath="">
    、、、
                    <!-- add by tangxj start -->
            <resourceConfig enabled="true" file="stat/resources.xml"/>
    		<!-- add by tangxj end -->
    、、、
    
        </ToolsGeneralConfig>
     

    配置url node显示菜单按钮

    D:\WCToolkitEE60\xml\tools\common\CommerceAcceleratorMHS.xml

       <menuitem name="operations"
                 enabled="true"
                 users="cusRep cusSup opMgr pickPacker receiver retAdmin seller">
    、、、
    	 <!-- add by tangxj start-->
          <node  name="BrandStatPulldownButton"
                 url="$webapp_accelerator$NewDynamicListView?ActionXMLFile=stat.BrandStat&amp;cmd=ProductBrandStatView"
                 users="all"/>
          <node  name="CategoryStatPulldownButton"
                 url="$webapp_accelerator$NewDynamicListView?ActionXMLFile=stat.CategoryStat&amp;cmd=ProductCategoryStatView"
                 users="all"/>
    	 <!-- add by tangxj end-->
    、、、
       </menuitem>
    
     

    配置验证 ok

    https://localhost:8000/webapp/wcs/tools/servlet/ToolsLogon?XMLFile=common.mcLogon&storeId=0

    --配置下拉菜单按钮完成--

    ----------------------

    配置MVC

    D:\WCToolkitEE60\workspace\CommerceAccelerator\WebContent\WEB-INF\struts-config.xml

            <forward name="ProductBrandStatView" path="/tools/productStat/BrandStat.jsp" className="com.ibm.commerce.struts.ECActionForward">
            </forward>
            <forward name="ProductCategoryStatView" className="com.ibm.commerce.struts.ECActionForward" path="/tools/productStat/CategoryStat.jsp">
            </forward>
    
            <action path="/ProductBrandStatView" type="com.ibm.commerce.struts.BaseAction">
            </action>
            <action path="/ProductCategoryStatView" type="com.ibm.commerce.struts.BaseAction">
            </action>
     

    新建JSP页面

    D:\WCToolkitEE60\workspace\CommerceAccelerator\WebContent\tools\productStat\BrandStat.jsp

    D:\WCToolkitEE60\workspace\CommerceAccelerator\WebContent\tools\productStat\CategoryStat.jsp

    --配置JSP页面展示完成--

    end

  • 相关阅读:
    Abp 领域事件简单实践 <一>
    Abp session和Cookie
    Abp 聚合测试
    反向代理
    Angular 变更检测
    VS 之github
    Docker 启动SQLServer
    查出第二大的数是多少
    DDD 理解
    ActionBar的简单应用
  • 原文地址:https://www.cnblogs.com/lindows/p/14390415.html
Copyright © 2011-2022 走看看