Bean property converter is a group of API to help to convert the string value to other type such as Date, Currency, and so on.
In Web applications, most of the data transferred through HTTP is in the form of string value, such as user information, session ID, and even some complex data types. The bean property converter provides typed data element to handle the conversion between string and non-string value.
Bean property converter uses POJO or Java bean as bean collection and corresponding bean property converters. It supports the conversion between string and primitive data types or complex data types.
For detailed information about how bean property converter works, see How bean property converter works.
The use of bean property converter can be divided into three phrases. First, develop your own converter to handle the complex data types. For primitive types, this step can be omitted. Then register the Java class of your own converter in file btt.xml. The final step is to invoke the converter to perform the conversions between string and non-string value. For more detailed steps, refer to the following tasks: Using bean converter for simple data typesUsing bean property converter for complex data types