Question 3. Given
<% Map m=new HashMap();
m.put(�m�,�n�);
m.put(�n�,�o�);
m.put(�o�,�p�);
pageContext.setAttribute(�map�,m, PageContext.PAGE_SCOPE);
Which of the following will output p ?
1.$ { map.o}
2.$ {map[�o�]}
3.${map.map.n}
Answer is given 1 and 2 . But I want to know why 3 is wrong?
Question 4.
Given
<% Map m=new HashMap();
m.put(�1�,�2�);
m.put(�2�,�3�);
m.put(�3�,�4�);
pageContext.setAttribute(�map�,m, PageContext.PAGE_SCOPE);
Which of the following will output 4 ?
1.${map.3}
2.${map[map[�2�]]}
3.${map[�3�]}
4.${map[map[2]]}
Answer is given 2 and 3 . But I want to know why 4 is wrong? source

ont know exactly from where i noted it
[ June 02, 2008: Message edited by: pradeep singh ]
[ June 02, 2008: Message edited by: pradeep singh ]