Apache Struts 2 Documentation > Home > Guides > Core Developers Guide > Annotations > CreateIfNull Annotation
#editReport()

Sets the CreateIfNull for type conversion.

Usage

The CreateIfNull annotation must be applied at field or method level.

Parameters

Parameter Required Default Description
value no false The CreateIfNull property value.

Examples

@CreateIfNull( value = true )
private List<User> users;