JSP Expression Language

JSP Expression Language provides the facility to access the properties of java bean components or other implicit object. It is introduced in the JSP version 2.0. We can write both arithmetic and logical expressions using JSP Expression Language.

Example:

test.jsp


	
		expression language example
	
	
		

This is an expression language example.

20 is greater than 30: ${20 > 30}
Sum of 20 and 30: ${20 + 30}

web.xml


	
  
          test.jsp
  	


Output:

jsp example 69
 
Download this example.
 
Next Topic: JSTL (JSP Standard Tag Library) with example.
Previous Topic: Exception handling in JSP with example.