try "person.countryCode.m_countryCode" , if there is a getter
getM_CountryCode().
Iam assuming you are trying to access this variable.

-----Original Message-----
From: Suzy Fynes [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 21, 2004 12:55 PM
To: [EMAIL PROTECTED]
Subject: property element in logic tag


 
Hi,
 
Can anyone see why the following will would not work
 
<logic-el:match name="PersonStatus"
property="person.countryCode.countryCode"
value="${CountryCode.countryCode}">
 
PersonStatus is a session object that contains a nested object
countryCode of type CountryCode and the class CountryCode contains a
string m_countryCode.
 
There is also a session object CountryCode that is an arraylist of
different country codes e.g. "UK" is United Kingdom, "IE" is Ireland etc
 
I tried using  <bean:write ="PersonStatus"
property="person.countryCode.countryCode"> and kept getting the error
Null property value for 'countryCode', but I've done system.out checks
and the object is set with values.
 
Thanks
Suzy

Reply via email to