On 1/3/2018 1:30 AM, José Antonio Delgado Trujillo wrote:
> Suppose that i have a nested Bean in a model class.
>
>
> public Class Bean_B{
> private String text;
> private int number;
> ...
> }
>
> public Class Bean_A{
> private Bean_B beanB;
> ...
> }
>
> A form
>
> <s:form action= “register”>
> <s:textField key=“beanA.beanB.text/>
> <s:textField key=“beanA.beanB.number/>
> …
> <s:submit>
>
> When i submit the form the action class populate the nested properties text
> and number?
If your action has getBeanA() method and your Bean_A class has
getBeanB() method and your Bean_B class has setText() and setNumber()
method then yes, it should be able to populate them, isn't it?