Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Section
Column
width20%
<webapp-property-to-field>
Column
Copies a property value from a properties file in a ServletContext resource to a field.

Valid only when the simple-method is called as an event, it is ignored otherwise.

Code Block
xml
xml
<webapp-property-to-field field="foo" resource="/WEB-INF/foo.properties" property="fooKey" />

Attributes

Name

Type

Requirements

Description

Notes

field

expression

required

The name of the field to set, the target of the assignment.

 

resource

constant, ${expression}

required

The resource location of the properties file inside the webapp, and relative to the root of the webapp (can be inside a war file).

Example: "/WEB-INF/myprops.properties".

property

constant, ${expression}

required

The property key.

 

default

constant, ${expression}

optional

A default value to use if the property value is null or empty.

 


Note
titleDraft Status

Final draft.


...