Editing the cobrands.xml File

The cobrands.xml file defines the active resources for the UA server. After adding a new resource, you must manually add the resource information to cobrands.xml.

To edit the cobrands.xml file:

  1. Navigate to the cobrands directory:

    • Tomcat

      %SYBASE%\WorkSpace\DevRuntimes\UA\tomcat\tomcat\webapps\onepage\fw\cobrands

    • EAServer

      Sybase\WorkSpace\DevRuntimes\EAServer\Repository\WebApplication\onepage\fw\cobrands

  2. Create a new folder in the cobrands directory using this naming format: resource_name-resource_ID, where resource name is the name entered when you created the resource in Adding Resources, and resource ID is the portal-assigned identification number.

  3. Navigate to the config directory, located in:

    • Tomcat

      %SYBASE%\WorkSpace\DevRuntimes\UA\tomcat\tomcat\webapps\onepage\config

    • EAServer

      %SYBASE%\WorkSpace\DevRuntimes\EAServer\Repository\WebApplication\onepage\config

  4. Open cobrands.xml in any text editor and copy an existing <CobrandDef> section and paste it below the last <CobrandDef> section in the file before the </Cobrands> tag. For example, copy and paste the Sybase section.

  5. In the section you copied, update the information to reflect the new resource. Enter:

    • Rid – the resource ID generated by Mobile Web Studio; for example, 211.

    • Name – the resource name that you assigned when you added the resource.

    • Dir – the directory you created for the new resource where you copy the resource-specific files; for example, /fw/cobrands/newResource-211.

    • Charset – the character set you want the resource to use.

    • EmailCharset – the character set you want the e-mail application to use.

    • EmailerSetting – indicates whether the Mobile Web Studio sends an e-mail message to the user when you create a new account. A setting of “1” indicates send an e-mail message; a setting of “0” (zero) indicates not to send a message.

      Your entry should look similar to this example:

      <CobrandDef rid='211' 
      name='newResource'
      dir='/fw/cobrands/newResource-211'
      charset='ISO-8859-1'
      emailCharset='ISO-8859-1'
      emailerSetting='1' >
      </CobrandDef>

  6. Save and close the cobrands.xml file.

  7. You must now configure the new resource. Go to Configuring New Resources.

Related Tasks

Adding Resources

Configuring New Resources

Send your feedback on this help topic to Sybase Tech Pubs: pubs@sybase.com