JSP ELde 的基本用法
javaBeans ${user.username}--------------user.getUsername()
数组 ${sport[1]}---------------------sport[1]
List ${address[2]}------------------phone.get(2)
Map ${phone.home}----------------phone.get("home")
JSP EL的内置对象
*pageContext
*pageScope
*requestScope
*sessionScope <%=session.getAttribute("phone")%>
*applicationScope 等价于${sessionScope.phone}
*param
*paramValues
*header
*headerValues
*cookies
*initParam
设定JSP不使用JSP EL
使用page指令的isELIgonred属性
<% @page isELIgnored="true"%>
或者修改web.xml
<web-app...>
<jsp-config>
<jsp-property-group>
<url-pattern>*.jsp</url-pattern>
<el-ignored>true</el-ignored>
</jjsp-property-group>
</jsp-config>
</web-app>