Install the Experience Optimization tag library in your Web application and register it in the Web application descriptor file.
Procedure
- Access the SDL Tridion Sites 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.
- 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.
- 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>
Note: Normally you do not need to register the standard tag libraries in the web.xml, unless you are using an older version of JSP specifications.