Documentation Center

Registering the SmartTarget tag library in a Web application

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

Procedure

  1. Access the SDL Tridion installation media, navigate to the Content Delivery\java\web\tld folder, and copy the tag library file cd_tags.tld to the WEB-INF/lib subdirectory of your Web application.
  2. Access the SmartTarget installation media, navigate to the Content Delivery\java\web\tld 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>