Hi,
In HFSJ, Page 394. There is a question.
It says:-
String num = "2";
request.setAttribute("num",num);
Integer i = new Integer(3);
request.setAttribute("integer",i);
What would be value of expression
${requestScope[integer] ne 4 and 6 le num || false}
Answer is "false"
But my query is "how is this evaluated". As per my understanding,
requestScope is a map of attributes in request scope and [integer] is not a string literal - it should have been evaluated.
${requestScope[integer] --> requestScope[i]
[integer] is not in quotes. How it got evaluated.
Unable to understand. Please help