The store.war/cartridges/MediaBanner/MediaBanner.jsp page retrieves the imageURL and link properties from the response MediaBanner content item and then renders the image. If the link property has a value, the image is rendered as a link.

Because the link property can contain any one of three types of Action objects, the MediaBanner.jsp page invokes a helper component called /atg/endeca/store/droplet/ActionURLDroplet, which is of class atg.projects.store.droplet.ActionURLDroplet. This component takes the Action object returned in the MediaBanner.link property as an action input parameter and returns an actionURL string that represents the complete URL for the media banner image link. The form of the complete URL depends on the type of Action object:

The following code example shows the use of the ActionURLDroplet in the renderer code:

  <dsp:droplet name="ActionURLDroplet">
      <dsp:param name="action" value="${contentItem.link}"/>
      <dsp:oparam name="output">
        <dsp:getvalueof var="actionURL" param="actionURL"/>
      </dsp:oparam>
    </dsp:droplet>

Copyright © 1997, 2014 Oracle and/or its affiliates. All rights reserved. Legal Notices