%config() Function

Top  Previous  Next

%config() function transfers the given configuration definitions to the configuration files existing under WEB-INF/MM-INF/config.

The given definitions are transferred to the global configuration files right under WEB-INF/MM-INF/config directory if the page is configuration page. Otherwise they are transferred to the page configuration files under WEB-INF/MM-INF/config/pages directory.

Syntax:

%config(definition)

 

definition

The definition to transfer to the configuration.

 

Example:

%config('<mscriptFunction name="replace">%nl()  <class>mypack.ReplaceFunction</class>%nl()</mscriptFunction>')

 

Result:

<mscriptFunction name="replace">

  <class>mypack.ReplaceFunction</class>

</mscriptFunction>'