The code sample in this section is a modified version of Commerce Reference Store’s store.war/global/gadgets/
crossSiteLinkGenerator.jsp
page. It takes a known site ID
and creates a URL that follows this pattern:

production-URL/path-to-static-page

For example:

/crs/storeus/index.jsp

In this example, /crs/storeus is the production-URL and /index.jsp is the path-to-static-page. Here is the code sample:

<%-- Pass a site ID and path to SiteLinkDroplet to get a static site-specific
URL. --%>
<dsp:droplet name="/atg/dynamo/droplet/multisite/SiteLinkDroplet"
             siteId="homeSite" path="/index.jsp" var="siteLink"/>
   <dsp:oparam name="output">

      <%-- Render the generated URL. --%>
      <dsp:a href="${siteLink.url}">Go to Home Store</dsp:a>

   </dsp:oparam>
</dsp:droplet>

The code sample resolves the various portions of the URL as follows: