struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lukasz Lenart <lukaszlen...@apache.org>
Subject Re: Instancia the bean
Date Wed, 03 Jan 2018 06:41:38 GMT
2018-01-03 7:23 GMT+01:00 Yasser Zamani <yasserzamani@apache.org>:
> On 1/3/2018 1:08 AM, José Antonio Delgado Trujillo wrote:
>> If you have a form linked to a bean using key attribute, then when you submitted,
must you instantiate the bean before the call action populate the properties? Or Strust2 instantiate
automatically after you call the action.
>
> You must instantiate bean like below ....

Nope, you do not have to, Struts/OGNL will do it for you

https://struts.apache.org/core-developers/type-conversion.html#null-property-handling


Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message