Adds an XML node, the content of a properties file or any other object to the velocity context The command belongs to the group "Velocity".
Parameter Name | Description | Type |
---|---|---|
ContextName | The name under which the object is added to the context. | valueexpression |
NodeRef | An XML node which shall be added to the context. | nodeReference |
PropertiesFile | The content of a properties file which shall be added to the context. Property values can then be accessed like $props.propertyX, $props.propertyY. | valueexpression |
Value | A value calculated by an expression which shall be added to the context. | valueexpression |
<VelocityContextPut ContextName="myContext" NodeRef="$nodeToAdd"/>
<VelocityContextPut ContextName="myContext" PropertiesFile="default.properties">
<VelocityContextPut ContextName="myContext" Value="Server"/>