Documentation Center

Configuring Experience Optimization for JSP or ASP.NET

Configure publishing for Experience Optimization, including Component Templates and Content Deployer configuration.

Procedure

  1. Configure your Component Templates to be used with Experience Optimization.
    1. In the Content Manager, open the Component Template.
    2. Set the Output format property to one of the following:
      • JSP—Select if publishing to a JSP-based website.
      • ASP.NET—Select if publishing to a ASP.NET-based website.
      • REL—Select if publishing to an website that is some other language besides JSP or ASP.NET. (REL stands for Render Engine Language.)
    3. Set Component Presentations based on this Component Template will be to the value Published as a Dynamic Component.
  2. Configure your Content Deployer.
    1. Access the configuration location of your Content Deployer microservice (combined Content Deployer or Content Deployer Worker microservice).
    2. Open tcdl-conf.xml for editing.
    3. In the TCDLEngine section, under Properties, ensure that only the following Property subelement is uncommented:
      <Property Name="tcdl.target.language" Value="VIRTUALMACHINELANG" />

      where VIRTUALMACHINELANG is dotnet if you use ASP.NET, or jsp if your use Java/JSP.

    4. Save and close tcdl-conf.xml.
  3. Configure Content Delivery for TCDL, using the appropriate steps for the type of website.
    Website languageDescription
    JSP or ASP.NET
    1. Open smarttarget_conf.xml for editing.
    2. Configure TCDL settings for Experience Optimization in the <Tcdl> section of the configuration file.

    For example, the <Pattern> section defines the regular expression that you can use in your code to indicate where a replacement string is inserted. These strings indicate content that requires processing by Experience Optimization.

    By default, double-hash (##()##) signs are used to demarcate the string to be replaced.

    Another language (using REL)
    1. In the configuration location of your Content Service (or Session-enabled Content Service), open cd_dynamic_conf.xml for editing.
    2. In the <TCDLEngine> element, add the following element:
      <TCDLEngine>
         <TagBundle Resource="smarttarget_renderers_bundle.xml"/>
      </TCDLEngine>