The following is a snippet of JSP code from question 33 of Sun's SCWCD practice exam, Form 1.
They claim that this snippet is the correct answer to a question. But I believe it is mistaken. Notice the use of "colorAssignment.key" and "colorAssignment.value". They use them as if they were beans in EL, but shouldn't they be colorAssignment.getKey() and colorAssignment.getValue()?
Does anyone believe the above is valid code? And if so, can you explain it to me perhaps?