Package org.apache.struts2.util
Annotation Interface CreateIfNull
Sets the CreateIfNull for type conversion.
Annotation usage:
The CreateIfNull annotation must be applied at field or method level.
Annotation parameters:
| Parameter | Required | Default | Description | 
|---|---|---|---|
| value | no | false | The CreateIfNull property value. | 
Example code:
@CreateIfNull( value = true ) private List<User> users;
- Author:
- Rainer Hermanns
- 
Optional Element SummaryOptional Elements
- 
Element Details- 
valueboolean value- Returns:
- The CreateIfNull value. Defaults to true.
 - Default:
- true
 
 
-