Indexed Properties

Some beans have properties that are Java arrays or lists. You can therefore add an index subscript to a property name in order to specify which element in the list you want to access. The following expression, for example, returns the name of the first author of an article:

${article.authors[0].name}

(Note that this returns exactly the same value as the second example in Accessing Bean Properties. The authors property returns an array containing all of a content item's authors; the author property returns the first member of the array, just like this example.)