Enabling Ambient Data Framework on the JSP Web site

Enable Ambient Data Framework on the JSP Web site to make UGC work.

Procedure

  1. Navigate to the root directory of your JSP Web site.
  2. To enable the Ambient Data Framework, add the following to your web.xml:
    <filter>
      <filter-name>Ambient Data Framework</filter-name>
      <filter-class>com.tridion.ambientdata.web.AmbientDataServletFilter</filter-class>
    </filter>
    <filter-mapping>
      <filter-name>Ambient Data Framework</filter-name>
      <servlet-name>Content Delivery Web service</servlet-name>
    </filter-mapping>
  3. Copy the file cd_ambient.jar from Content Delivery\roles\api\java\lib\ on your SDL Tridion installation media to the WEB-INF/lib/ folder of your Web site.
  4. Copy the file cd_ambient_conf_sample.xml from Content Delivery\resources\configurations\ on your SDL Tridion installation media to the WEB-INF/classes/ folder of your Web site, and rename it to cd_ambient_conf.xml.
  5. Open cd_ambient_conf.xml in a plain-text or XML editor.
  6. Find the <Security> section and enclose it in comments. This element is only needed if you intend to set up OAuth authentication.
  7. Save and close cd_ambient_conf.xml.