Documentation Center

Configuring JSP or ASP.NET

If you intend to publish to JSP or ASP.NET, configure your Component Templates and either your Content Deployer configuration (when using the new publishing framework) or your Experience Optimization configuration (when using the old publishing framework).

Procedure

  1. In your Component Templates:
    1. Set the Output format property to JSP or ASP.NET.
    2. Set Component Presentations based on this Component Template will be to the value Published as a Dynamic Component.
  2. If you are using the new publishing framework introduced in SDL Web, access the configuration location of your Content Deployer microservice.
  3. Open cd_deployer_conf.xml for editing.
  4. 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.

  5. Save and close cd_deployer_conf.xml.
  6. Alternatively, if you are using the old publishing framework that was deprecated in SDL Web, then in your Publication Targets, set the Target Language property to JSP or ASP.NET.
  7. Optional: Open smarttarget_conf.xml in a text editor and 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. By default, double-hash (##()##) signs are used to demarcate the string to be replaced (these indicate content that requires processing by Experience Optimization).