Hello,
i would like to use EL to get the variable in different scope,
i know that EL will find the variable in all scope (page, request, session, application)
so now i am trying to test the mechanism by writing code to test...
<%
SortedMap m = new TreeMap();
SortedMap n = new TreeMap();
m.put("Sneezy", "common cold");
n.put("Sneezy", "good");
pageContext.setAttribute("map", m);//page scope variable
session.setAttribute("map", n); //session scope variable
%>
<c
ut value='${map.Sneezy}'>
empty !!!
</c
ut>
i found that it print out "common cold",
so i would like to ask.... do Servlet container have a sequence to search the variable all scope? all how can i determine which one it will display?
thanks~~