デフォルト WebSphere Commerce アクセラレーターのホーム・ページの変更
デフォルト WebSphere Commerce アクセラレーターのホーム・ページをカスタム・ページに変更するには、以下のようにします。
- 以下のファイルをオープンする。
CommerceAcceleratorB2C.xml
CommerceAcceleratorB2B.xml
デフォルトの位置は次のとおりです。

drive:\WebSphere\CommerceServer\xml\tools\common\CommerceAcceleratorB2C.xml
drive:\WebSphere\CommerceServer\xml\tools\common\CommerceAcceleratorB2B.xml
drive:\Program
Files\WebSphere\CommerceServer Server\xml\tools\common\CommerceAcceleratorB2C.xml
drive:\Program Files\WebSphere\CommerceServer\xml\tools\common\CommerceAcceleratorB2B.xml

/usr/WebSphere/CommerceServer/xml/tools/common/CommerceAcceleratorB2C.xml
/usr/WebSphere/CommerceServer/xml/tools/common/CommerceAcceleratorB2B.xml
/opt/WebSphere/CommerceServer/xml/tools/common/CommerceAcceleratorB2C.xml
/opt/WebSphere/CommerceServer/xml/tools/common/CommerceAcceleratorB2B.xml
/QIBM/ProdData/WebCommerce/xml/tools/common/CommerceAcceleratorB2C.xml
/QIBM/ProdData/WebCommerce/xml/tools/common/CommerceAcceleratorB2B.xml
- このファイルで、homepage パラメーターを検索する。 デフォルト WebSphere Commerce アクセラレーターのホーム・ページ・ファイルの場所と名前は、
それぞれ /web/tools/common (アプリケーション Enterprise Archive (EAR) ディレクトリーに
インストールされた WebSphere Application Server の下) および AcceleratorHome.jsp であるので注意してください。 次のように、デフォルト・ホーム・ページ・ファイルの名前、場所、またはその両方を、カスタム・ホーム・ページ・ファイルの名前または URL に変更する。
- カスタム・ホーム・ページがデフォルト WebSphere Commerce アクセラレーターのホーム・ページ・ファイルと同じディレクトリーにある場合には、以下のようにします。
- カスタム・ホーム・ページを次のディレクトリーにコピーする。
drive:\WebSphere\AppServer\installedApps\WC_Enterprise_App_demo.ear\wctools.war\tools\common
drive:\Program Files\WebSphere\AppServer\installedApps\WC_Enterprise_App_demo.ear\wctools.war\tools\common
/usr/WebSphere/AppServer/installedApps/WC_Enterprise_App_demo.ear/wctools.war/tools/common
/opt/WebSphere/AppServer/installedApps/WC_Enterprise_App_demo.ear/wctools.war/tools/common
/QIBM/ProdData/WebASAdv4/installedApps/WC_Enterprise_App_demo.ear/wctools.war/tools/common
- CommerceAccelerator.xml ファイルで、homepage パラメーター値を次のいずれかに変更する。
- ホーム・ページが JSP ファイルの場合には、このパラメーターを次のものに変更する。
homepage="/webapp/wcs/tools/servlet/tools/common/custom_home_page.jsp"
ここで custom_home_page は、WebSphere Commerce アクセラレーターのホーム・ページのカスタム JSP ファイルの名前です (たとえば customhomepage.jsp など)。
- ホーム・ページが JSP ファイル以外のファイル (たとえば HTML ファイルなど) の場合には、このパラメーターを次のものに変更する。
homepage="/wcs/tools/common/custom_home_page"
ここで custom_home_page は、WebSphere Commerce アクセラレーターのホーム・ページのカスタム・ファイルの名前 (拡張子を含む) です (たとえば、ホーム・ページが HTML ファイルの場合には、このファイルを customhomepage.htm とすることができます)。
- カスタム・ホーム・ページがデフォルト WebSphere Commerce アクセラレーターのホーム・ページ・ファイルとは異なるディレクトリー (たとえば /homepage など) にある場合には、CommerceAcceleratorB2C.xml ファイルで、homepage パラメーター値を次のものに変更する。
homepage="/homepage/custom_home_page"
ここで custom_home_page は、WebSphere Commerce アクセラレーターのホーム・ページのカスタム・ファイルの名前です。
- カスタム・ホーム・ページが Web サイトの場合には、CommerceAcceleratorB2C.xml ファイルで、homepage パラメーター値を次のものに変更する。
homepage="URL"
ここで URL は、WebSphere Commerce アクセラレーターのホーム・ページの Web ページです。ただし、このページが SSL (セキュア) モードであることを保証するために https:// 接頭部 (たとえば https://www.myhomepage.com など) を含みます。
注: ブラウザー・セキュリティーの制限のため、外部 URL をホーム・ページ (http://www.myhomepage.com など) として使用すると、WebSphere Commerce アクセラレーターはコンテンツ・フレームのロード状況を調べないので、
Web ページのロード中に進行標識が表示されません。
CommerceAcceleratorB2C.xml
CommerceAcceleratorB2B.xml ファイルを保管する。
- WebSphere Commerce サーバーを再始動する。