The problem with ${paramValues[hobbies][0]} is indeed the quotes are missing (either single or double).
A corrected version of : ${paramValues["hobbies"][0]} would correctly retrieve the first value of the hobbies parameter.
The second one ( ${paramValues[hobbies][1]} ) is wrong because :
- same problem, quote are missing;
- 1 is index of the second value, and we want first value (indices start at 0).
To answer your last question, paramValues is a Map mapping a key (parameter name) to a
String array of values.
In generic notation, paramValues is :
Map<String, String[]> paramValues;
So, paramValues["hobbies"] resolves to a String[] containing values of the parameter named hobbies.
Hope this helps.
[ March 07, 2006: Message edited by: Frederic Esnault ]