Yes it is but i had a problem with instantiate the both beans.
Now it works and i understand with the message Instancia the bean.
Struts2/ONGL instantiate the beans but you must write the default constructor.
Thanks
> On 3 Jan 2018, at 05:52, Yasser Zamani wrote:
>
>
>
> 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
>>
>>
>>
>>
>> …
>>
>>
>> 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?
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org