Java Web:EL表达式
servlet代码:
request.setAttribute("name", "张思睿");
request.setAttribute("person", list);
request.setAttribute("person", map);
jsp中用EL表达式取值:
${name }
${list[0] }
${map.key1 }
servlet代码:
request.setAttribute("name", "张思睿");
request.setAttribute("person", list);
request.setAttribute("person", map);
jsp中用EL表达式取值:
${name }
${list[0] }
${map.key1 }