Adding Experience Optimization to the deprecated Java/JSP API (in-process) Server Role
You need to install Experience Optimization presentation server-side components (JAR files and config files) in the Java/JSP Web application that contains API (in-process).
Procedure
- Experience Optimization
- Navigate to the directory Experience Optimization\Content Delivery\roles\api\in-process\java\lib and copy all files to the lib/ subdirectory of your Web application.
- On the installation media, from the Content Delivery\Ambient Data Framework\cartridges\ folder, copy all files to the lib/ subdirectory of your Web application.
- Download an appropriate version of the
jstl.jarfile for your servlet container version and copy the file to the lib/ subdirectory of your Web application. - Navigate to the folder Content Delivery\Ambient Data Framework\configuration\samples\ do one of the following with the cd_ambient_conf.xml file to configure the Cartridge XML configuration files:
- If this file already exists in your Web application classes/ directory, merge the contents of the
<Cartridges>section into this file. - If this file is not present in your Web application classes/ directory, copy the file to this directory.
YourCartridgessection must contain the following Cartridge configurations:<Cartridge File="/smarttarget_cartridge_conf.xml"/> <Cartridge File="/session_cartridge_conf.xml"/>If you have installed the Audience Manager cartridge, make sure it is also configured:<Cartridge File="/audiencemanager_cartridge_conf.xml"/> - If this file already exists in your Web application classes/ directory, merge the contents of the
- Navigate to the folder Content Delivery\resources\samples\.
- Copy the file smarttarget.referrers.xml to the classes/ subdirectory of your Web application.
- Merge the contents of the file logback.xml with the existing logback.xml file in the WEB-INF/classes/ subdirectory of your Web application.
- From the installation media folder Experience Optimization\Content Delivery\resources\samples\ folder, copy the smarttarget_conf.xml file to the classes/ subdirectory of your Web application.
Results
- 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. - Registering custom tags in Page Templates
If you have a Java/JSP Web site, to use the Experience Optimization JSP Custom Tags, change all relevant Page Templates to add an instruction to register the Custom Tags to the top of every published Web page that uses these controls. - Configuring Experience Optimization in the deprecated in-process API
Edit smarttarget_conf.xml in the configuration location of your Web site to configure Fredhopper and Experience Optimization. - Configuring the smarttarget.referrers.xml file
The smarttarget.referrers.xml file contains regular expressions to extract keywords (search terms) from referrer URLs. - Configuring logging
Update your existinglogback.xmlto implement Experience Optimization logging on the Presentation Server. If your Web application does not already have alogback.xmlfile, you can simply rename thelogback_sample.xmlfile tologback.xmland use it directly.