JSP Tutorials - Herong's Tutorial Examples - Version 4.03, by Dr. Herong Yang
Literal Data and Named Variables
This section describes literal data and named variables used in EL expressions. 5 types of literal data are supported: Boolean, Integer, Floating Point Number, String, and Null.
As in all computer language, expression starts with literal data and variables. EL expression language supports 5 types of literal data:
The literal data rules are easy to understand, with a couple of exceptions:
Named variables are coming from two sources:
Variables provided as pageContext attributes will have their original Java types, like int, float, char, or Object. But all EL operations will be carried out in one of the 5 types of literal data. Operators of other types will be converted before the operation.
Type conversion rules:
Last update: 2012.
Table of Contents
JSP (JavaServer Pages) Overview
Tomcat 7 Installation on Windows Systems
Syntax of JSP Pages and JSP Documents
JavaBean Objects and "useBean" Action Elements
Managing HTTP Response Header Lines
Non-ASCII Characters Support in JSP Pages
What is EL (Expression Language)?
►Literal Data and Named Variables
Basic Operators and Operations
Collection Elements and Object Properties
Expression Examples in Static Text
Expression Examples in Static Text - Result
EL Variables Are pageContext Attributes
Overview of JSTL (JSP Standard Tag Libraries)