Display String array in FTL

strutstwouser <[email protected]>
Newsgroups gmane.comp.web.freemarker.user
Message-ID <[email protected]>
Hi,

I have an Address object that has an array of addressLines like : 

    private java.lang.String[] addressLine;

with appropriate getter/setter. The array has been populated with 1 element.

When i try to give ${adresss.addressLine[0]} , it gave a
nullpointerexception

However, the same notation ${borrowers0]} works fine if it's a List, like : 

    private List<Customer> borrowers;

Is there anything different for String[] ?

Thanks,
Joseph
-- 
View this message in context: http://www.nabble.com/Display-String-array-in-FTL-tp23632761p23632761.html
Sent from the freemarker-user mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables 
unlimited royalty-free distribution of the report engine 
for externally facing server and web deployment. 
http://p.sf.net/sfu/businessobjects
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.