Hi Raja,
It is obvious that you can use EL expression with all Standard J2SE collection types , Arrays and also Pojo beans.
In the case of collection types Map , List have a slight difference in accessing their content in the containers. In Maps you have to follow [key,value] approach. Which means in Maps you always put a value against a key and when you want to retrieve the values you have to use keys to access them
key1 -------> value1
key2 -------> value2
...
...
keyN -------> valueN
this key, value both could be objects. most often
String values are used as keys in Maps in real scenarios. so accessing a map could be done ${myBean["mapName"].someKey}
ex: ${myBean["params"].key1} , ${myBean["params"].key2},....,${myBean["params"].keyN}
In the case of List object all you have is "index" and a value bound to that index.Hence you access List values as ,
index1 ----> value1
index2 ----> value2
index3 ----> value3
-------
-----
indexN ----> valueN
The index value must be an int and value could be an Object. Because of that you can access List using EL expressions only using index values.
${myBean["listPropertyName"][indexvalue]} indexvalue could be int or a String which can legally be parsed in to an int value.
ex: ${myBean["objects"][0]} , ${myBean["objects"][1]},....,${myBean["objects"][N]}
are correct , but ${myBean["objects"].a} is incorrect since there is no index value as "a".
I hope this would help you a bit!
Regards,
Ranil