Develop > Presentation layer > Management Center framework


Load images from a custom location

By default, the Management Center loads catalog images from the store directory within the Stores web application. If your store retrieves images from a different location, configure this custom location so that the Management Center can locate your images.

To load the images from a location other than the default location, configure the image loading servlet to locate images from a custom location.


Procedure

  1. Open WebSphere Commerce Developer and switch to the Enterprise Explorer view.

  2. Expand LOBTools > WebContent > WEB-INF and locate the web.xml file.

  3. Within the web.xml file, add the imageURLPrefix initialization parameter to the <servlet-name>ImageServlet</servlet-name> section. For example:

    <!-- Image Serving Servlet -->     <servlet>         <servlet-name>ImageServlet</servlet-name>         <servlet-class>com.ibm.commerce.foundation.client.lobtools.servlet.ImageServlet</servlet-class>         <init-param>             <param-name>imageURLPrefix</param-name>             <param-value>http://myImageServletHost/webapp/wcs/stores/Madisons/</param-value>         </init-param>
            <load-on-startup>2</load-on-startup>     </servlet>
    

  4. Save the changes.


What to do next

After you complete the work:

  1. Test the changes by viewing them in the Management Center, using this URL: https://hostname:8000/lobtools.

  2. If you started the WebSphere Commerce Server to test the changes, stop and then restart the WebSphere Commerce Server.

  3. Deploy the changes to the production environment.


+

Search Tips   |   Advanced Search