-
How complex beans are populated in the action? (1 messages)
- Posted by: francillo choppy
- Posted on: March 22 2009 09:52 EDT
Hi, I've the following pb: I've a "Preson" object (firstName, lastName, Adress). The Adress is another object (city, country, zip, ...). Person: firstName lastName Adress: City Country zip In my sumbitting form, I've, for example : When I submit my form, in the Action (which is an ActionSupport), my bean Person is instanciate, and attributes "firstName" and "lastName" are populated. But, my su-object Adress is always null, so "person.adress.city" is not filled. My question is: How to do to make SubObject be instanciated to be filled automatically? Regards. FrancilloThreaded Messages (1)
- Subject Closed by francillo choppy on March 22 2009 10:44 EDT
-
Subject Closed[ Go to top ]
- Posted by: francillo choppy
- Posted on: March 22 2009 10:44 EDT
- in response to francillo choppy
Pb is solved: My INPUT (which is in fact a custom advanced struts component written in javascript) did not use the name as the attribute name to forward to the request, so, nothing in the action .... and adress not instanciated because Struts keep object null if not referenced a least 1 time. rgds Francillo