In HF book, mock exam of chapter 8, question 1:
Given HTML form that uses checkboxes to allow a user to select multiple values fro a parameter called hobbies. Which EL return the first value of hobbies?
The answers are :
${param.hobbies}
${paramValues.hobbies[0]}
Option D: ${paramValues[hobbies][0]}
Why this does not work?
According to p.379 example musicMap["Ambient"] is the same as musicMap.Ambient.
paramValues is a map and hobbies is the key. This hobbies key contains a
string array.
So, based on this theory, option D should work.