[ Team LiB ] Previous Section Next Section

Variables

One of the main features of JSP EL is that it allows you to access JSP variables stored in any of the various scopes (page, request, session, application). By default, the result of an expression like ${product} is the same as calling pageContext.findAttribute("product"). That is, the expression evaluator first looks for the value in the page scope, then the request scope, next the session scope, and finally the application scope, returning the first value found. If product exists in both the request scope and the application scope, the value in the request scope is the one used.

    [ Team LiB ] Previous Section Next Section