Bean property converter is a group of API help to perform conversion between string value and non-string value.
In web applications, most data transferred through http is string value, such as user information, session ID, and even some complex data types are always kept in complex string format. 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 work.
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: