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, you must configure
this custom location so that the Management Center can locate your
images.
About this task
If you want to load your images from a location other than
the default location, you must configure the image loading servlet
to locate images from a custom location.
Procedure
- Open
WebSphere Commerce Developer and switch to the Enterprise Explorer
view.
- Expand and locate the web.xml file.
- 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>
- Save your changes.
What to do next
After you complete your work:
- Test your changes by viewing them in the Management Center, using
this URL: https://hostname:8000/lobtools.
- If you started the WebSphere Commerce Server to test your changes, stop and then restart the WebSphere Commerce Server.
- Deploy your changes to your production environment.