1. el表达式获取作用域:
    2. <%
    3. pageContext.setAttribute("hello","helloPagContext");
    4. request.setAttribute("hello","helloRequest");
    5. session.setAttribute("hello","helloSession");
    6. application.setAttribute("hello","helloApplication");
    7. %>
    8. ${sessionScope.hello}
    9. ${requestScope.hello}
    10. ${pageScope.hello}
    11. ${applicationScope.hello}
    12. el表达式进行计算:
    13. ${1+2}--${1*2}--${1/2}--${1%3}
    14. el表达式获取请求信息:
    15. <br>${empty str}
    16. el表达式获取响应信息
    17. <hr>${header.entrySet()}
    18. <hr>${headerValues["Accept-Language"][0]}
    19. el表达式获取cookie
    20. <hr>${cookie}
    21. <hr>${cookie.JSESSIONID}
    22. <hr>${cookie.JSESSIONID.name} --cookie名称
    23. <hr>${cookie.JSESSIONID.value} -- cookie值