Adding the output tag to your store JSP pages

After you define the output tag in your biConfig.xml file, you must add the output tag to all your store pages. Place the output tag in the location in the page at which you want the JavaScript snippets for to be written in the store page.

Procedure

  1. Open the store page.
  2. Place the output tag in the page at the wanted location. The syntax of the output tag is:
    <cm:output section="your_section_name" />

    For example:

    <cm:output section="header" />
  3. If the tag library is not already included in the JSP page, include it above the location that you placed the <output> tag, or in the parent JSP page that includes the snippet. Use the following code to include the tag library:
    <%@ taglib uri="http://commerce.ibm.com/coremetrics" prefix="cm" %>
  4. Save and close the file.
  5. Repeat these steps for all other store pages to which you want to write the JavaScript snippets.