James Boswell wrote:I would connect to the database first and check that the student record you are retrieving has addresses linked to it.
James Boswell wrote:Now, either by logging or running your code in debug, confirm the size of the address list for the student entity straight after you have retrieved it.
James Boswell wrote:Did you solve this issue Asme?
Bear Bibeault wrote:Have you added logging to your application?
Bear Bibeault wrote:Sitting around and waiting for other people to do your work isn't going to help you progress much.
Asme Williams wrote:Well I don't know what you mean by added logging ...
So what I am supposed to do for you to help me?,
So what I am supposed to do for you to help me?,
Bear Bibeault wrote:Your EL expressions try to treat those values as properties -- which is what I would expect. Why isn't the data arranged accordingly?
Bear Bibeault wrote:Answer this: why are those values in a list? The first name isn't in a list, why would city be in a list?
Bear Bibeault wrote:You can use a one to many, but the list should be of address elements that contain the properties of an address, not the individual elements of one address.
Bear Bibeault wrote:You need to figure out if the data is loading correctly. At first glance, it looks like the list should be off addresses, but you need to figure out why the list contains city, state and country instead. You JSP output does not seem to jive with the code -- but I haven't taken a good and close look at it.