Registering the Experience Optimization tag library in a Web application

Install the Experience Optimization tag library in your Web application and register it in the Web application descriptor file.

Procedure

  1. Access the SDL Web installation media, navigate to the Content Delivery\resources\tld\ folder, and copy the tag library file cd_tags.tld to the WEB-INF/lib subdirectory of your Web application.
  2. Access the Experience Optimization installation media, navigate to the Content Delivery\roles\api\in-process\java\lib\ folder, and copy the tag library file smarttarget.tld to the WEB-INF/lib/ subdirectory of your Web application.
  3. Open the web.xml Web application descriptor file in a text editor and add the following XML fragment:
    <jsp-config>
       <taglib>
         <taglib-uri>/smarttarget</taglib-uri>
         <taglib-location>/WEB-INF/taglibs/smarttarget.tld</taglib-location>
       </taglib>  
       <taglib>
         <taglib-uri>/cd_tags</taglib-uri>
         <taglib-location>/WEB-INF/taglibs/cd_tags.tld</taglib-location>
       </taglib>
    </jsp-config>