How to access properties in the POJO using Struts 2 ModelDriven interface when you are using JSP?
问题 I have an action class that implements ModelDriven interface. This ModelDriven is a regular POJO, the problem is that one of its properties is another object. Imagine that my ModelDriven is a object called Person and my person has an attribute called Address that is another object. Address has regular properties such as String, Long and etc. In the JSP when I submit the form, all the regular properties used such as String, int, long in Person are mapped correctly, but all the data that should