Apache Struts 2 Documentation > Home > Guides > Core Developers Guide > Annotations > CreateIfNull Annotation
Added by Rainer Hermanns, last edited by Don Brown on Nov 14, 2006  (view change)

Sets the CreateIfNull for type conversion.

Usage

The CreateIfNull annotation must be applied at field level.

Parameters

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

Examples

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