Enabling Ambient Data Framework on the JSP Web site
Enable Ambient Data Framework on the JSP Web site to make UGC work.
Procedure
- Navigate to the root directory of your JSP Web site.
- 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> - 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.
- 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.
- Open cd_ambient_conf.xml in a plain-text or XML editor.
- Find the
<Security>section and enclose it in comments. This element is only needed if you intend to set up OAuth authentication. - Save and close cd_ambient_conf.xml.