1. struts2 type conversion, for 8 element data types and java. util. for common data such as Date and String, struts2 can use the built-in type converter for automatic conversion. However, for custom object types, We need to specify the type conversion method by ourselves. 2. For a custom type converter, three information is required: The Action name, the attribute name to be converted in the Action, and the converter corresponding to this attribute. The Action is named by struts. the property name to be converted in the Action obtained in the xml property file is obtained by the key in the xxx-conversion.properties property file, and the converter corresponding to the property is obtained by the value corresponding to the key. For example, the conversion between a string and an object. Create the following directory structure, import the jar package related to struts2, and configure the PreparedAndExecuteFilter index in xml. the code in jsp is as follows: [html]