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:
For a
NavigationActionobject, the complete URL is composed of the request’s context path followed by theNavigationActionobject’scontentPathandnavigationStateproperties.For a
RecordActionobject, the complete URL is composed of the request’s context path followed by theRecordActionobject’scontentPathandrecordStateproperties.For a
UrlActionobject, the form of the complete URL depends on whether or not a relative URL was defined for the link in Experience Manager. If a relative URL was defined, theActionURLDropletcomponent returns a URL that is composed of the request’s context path followed by theUrlActionobject’surlproperty. If a full URL was specified in Experience Manager, theActionURLDropletcomponent returns theUrlActionobject’surlproperty by itself.
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>
