<%
Request.setattribute ("name", "Carving Heroes");
Application.setattribute ("name", "Deer Ding kee");
%>
${requestscope.name}
${applicationscope.name}
<%
String [] strs={"clan", "Leaf isolated City", "Simon blowing Snow", "Li Huan"};
Request.setattribute ("STRs", STRs);
%>
${STRS[1]}
<%
List<string> list=new arraylist<string> ();
List.add ("Zhou Zhijo");
List.add ("Small Zhao");
List.add ("Zhao");
List.add ("Spider");
Request.setattribute ("list", list);
%>
${LIST[2]}
<%
Map<string,string> map=new hashmap<string,string> ();
Map.put ("A", "Eastern Evil");
Map.put ("B", "West Poison");
Map.put ("C", "South Emperor");
Map.put ("D", "North hack");
Request.setattribute ("map", map);
%>
${map[' B '}
${map. C
<%
List<user2> ulist=new arraylist<user2> ();
Ulist.add (New User2 ("Liu Bei", "147"));
Ulist.add (New User2 ("Guan Yu", "258"));
Ulist.add (New User2 ("Zhang Fei", "369"));
Request.setattribute ("UList", uList);
%>
${ulist[1].username}
${ulist[1].password}
Retrieving data in a JSP page with an El expression